Readme.txt File for the SampleWebCloudService Project for
"Visual Studio Magazine" February 2009: "Test-Drive Windows Azure"

See the Azure Storage Services Test Harness: Table Services 1  Introduction and Overview and succeeding blog entries for more details about this project (http://oakleafblog.blogspot.com/2008/11/azure-storage-services-test-harness.html)

Prerequisites (see article for links): 
1a. Microsoft Visual Studio 2008 SP1 with Visual Web Developer or 
1b. Microsoft Visual Web Developer 2008 Express Edition with SP1
2. Windows Azure SDK
3. Windows Azure Tools for Microsoft Visual Studio

This project does not require SQL Server and is initially configured to run under the Windows Azure SDK's Development Fabric with Development Storage for Azure Tables

Instructions:

1. Extract the archive to a \SampleWebCloudService folder and subfolders by marking the Use Folder Names check box.

2. Open the project in VS 2008 and press F5 to compile and run it in the Development Fabric.

3. Click Create Customers to populate the local CustomerTable.

4. When ready to deploy to Windows Azure, comment out the following lines in the ServiceConfiguration.cscfg file:

        <!--<Setting name="AccountName" value="devstoreaccount1"/>
        <Setting name="AccountSharedKey" 	value="Eby8vdM02xNO...oGMGw=="/>
        <Setting name="BlobStorageEndpoint" 	value="http://127.0.0.1:10002/"/>
        <Setting name="QueueStorageEndpoint" 	value="http://127.0.0.1:10002/"/>        
        <Setting name="TableStorageEndpoint" 	value="http://127.0.0.1:10002/"/> -->

Note that the AccountSharedKey for Developer services is the same for all users 

5. Uncomment these lines and substitute <youraccountname> and <YourPrimaryAccessKey> to move storage to the Azure Services Platform:

        <Setting name="AccountName" value="<youraccountname>"/>
        <Setting name="AccountSharedKey" 	value="<YourPrimaryAccessKey>" />
        <Setting name="BlobStorageEndpoint" 	value="http://blob.core.windows.net" />
        <Setting name="QueueStorageEndpoint" 	value="http://queue.core.windows.net" /> 
        <Setting name="TableStorageEndpoint" 	value="http://table.core.windows.net" />

The PrimaryAccessKey is the base64Encoded value from the Cloud Storage section of the Azure Portal's Summary page. 

6. Deploy the project to Windows Azure by following the steps in the article or in "Deploying a Service on Windows Azure" by Jim Nakashima (http://msdn.microsoft.com/en-us/library/dd203057.aspx).

Enjoy,

--rj
roger_jenning[at]compuserve.com
