Search Wiki:

Windows Azure Code Samples

A number of code samples to help you get started with building scalable web application and services that run on Windows Azure.


csmanage.exe - a tool to manage your deployments and services, using the Windows Azure Service Management API

csmanage.exe + client library source Source for csmanage and sample .NET service management API client library

C# Samples - C# Code samples that support Visual Studio 2008 and command line build.
VB Samples - VB Code samples that support Visual Studio 2008 and command line build.

C# Samples - C# Code samples that support Visual Studio 2010 Beta 2.
VB Samples - VB Code samples that support Visual Studio 2010 Beta 2.

Additional C# Samples - Additional C# Code samples that support Visual Studio 2008 and command line build.

Using the samples in Visual Studio 2008 or Visual Studio 2010 Beta 2 require the Windows Azure Tools for Microsoft Visual Studio.

Please see the documentation for more information about the samples.

Samples Include:

FastCGI Sample - A simple service that demonstrates running a native code FastCGI application.

FullTrust Sample - A simple service that shows how to create a web role and a worker role that run with full trust privileges.

HelloFabric Sample - A simple service that demonstrates a web role and a worker role and uses the Windows Azure runtime API to interact with the fabric from a running instance.

HelloWorld Sample - Demonstrates how to package a service for deployment to the fabric.

PowershellRole Sample - PowershellRole sample hosts the Powershell runtime within a Windows Azure role. It demonstrates a simple remote console web role as well as a worker role whose implementation is a Powershell script.

Thumbnails Sample - A service that demonstrates a web role and a worker role. The web role provides a front-end application for the user to upload photos and adds a work item to a queue. The worker role fetches the work item from the queue and creates thumbnails in the designated directory.

Additional Samples Include:

AspProviders Sample - Provides a sample library with implementations of these ASP.NET providers: Membership, Role, Profile, Session State.

AspProvidersDemo Sample - A simple service that makes use of the ASP.NET provider sample library.

CloudDrive Sample - A Windows PowerShell provider that enables command-line access to Blob Storage and Queue service resources as though they are file system resources available via a network drive. (samples.zip only)

DistributedSort Sample - A distributed sorting service that demonstrates the use of Blob Storage and the Queue service.

PersonalWebSite Sample - Demonstrates how to port an ASP.NET Web application to the Windows Azure environment.

StorageClient Sample - A sample client library that provides .NET wrapper classes for REST API operations for Blob, Queue, and Table Storage. The sample also includes a console application that can be used to test the library functionality.
Last edited Nov 16 2009 at 1:28 AM  by SriramK_MSFT, version 26
Comments
jsclary wrote  Nov 15 2009 at 8:17 PM  
I see you have updated this for the new StorageClient api. Are there plans to complete the conversion of the AspProviders to using the new configuration connection strings?

Although it compiles I'm not having much luck getting it to run without crashing even with the legacy config parameters in place. It looks almost like it has been converted to get the table and blob service connection info only out of Web.Config which really is a horrible idea since you'll want it to be different for local development, staging and production.

The _accountName, _sharedKey, _tableServiceBaseUri and _blobServiceBaseUri and their associated config params need to go away and be replaced with things gleaned from CloudStorageAccount account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"); and a new settingName parameter defined to use in place of "DataConnectionString".

I'm just wondering if I should bother doing the conversion myself or if another version will be released soon.


Updating...
Page view tracker