Friday, June 5, 2009

Windows Azure Configuration for Microsoft Sample Storage Client

Another quick note on Windows Azure that made me loose some time.

The urls of the three storages, Table, Blob and Queue must be given without the account name:

   1: <ConfigurationSettings>
   2:   <Setting name="AccountName"
   3:      value="youraccounthere"/>
   4:  
   5:   <Setting name="AccountSharedKey"
   6:            value="yourprimarykeyhere"/>
   7:  
   8:   <Setting name="TableStorageEndpoint"
   9:            value="http://table.core.windows.net/"/>
  10:  
  11:   <Setting name="BlobStorageEndpoint"
  12:            value="http://blob.core.windows.net/"/>
  13:  
  14:   <Setting name="QueueStorageEndpoint"
  15:            value="http://queue.core.windows.net/"/>
  16: </ConfigurationSettings>

What you will see on the portal is something like http://youraccount.table.core.windows.net and copying that string will not work with the code as is.

No comments: