8. November 2008 11:48
by Chakkaradeep
2 Comments

If you want to take your applications to the ‘cloud’ from the local storage, that is, from http://127.0.0.1:10002 to http://{application-name}.table.core.windows.net/ , all you need to do is edit your ServiceConfiguration.csfg file of your Web Role with the proper values!
<?xml version="1.0"?>
<ServiceConfiguration serviceName="RdChat" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
<Role name="WebRole">
<Instances count="1"/>
<ConfigurationSettings>
<Setting name="AccountName" value="<account-name>"/>
<Setting name="AccountSharedKey" value="<primary-key>"/>
<Setting name="UsePathStyleUris" value="false" />
<Setting name="TableStorageEndpoint" value="http://table.core.windows.net"/>
</ConfigurationSettings>
</Role>
</ServiceConfiguration>
Hit F5, Tables will be created for you in the ‘cloud’ :)
The things to keep in mind here are:
- The <account-name> must be in lowercase
- UsePathStyleUris should be set to false when you point to the ‘cloud’