The URI
(think of as the server-portion of the connection string) to the page blob represents the namespace + container + blob of your storage account. The credentials
represent the user/pass which together with the URI
comprise the connection string to the Azure cloud storage service.
The URI
will always be HTTP assuming you are using the local emulator.
CloudStorageAccount storageAccount = CloudStorageAccount.DevelopmentStorageAccount;
When deploying to Azure, the URI
scheme will be whatever you assign it in the service configuration (ServiceDefinition.csdef / ServiceConfiguration.Cloud.cscfg).
CloudStorageAccount storageAccount = CloudStorageAccount.FromConfigurationSetting("CloudDrive.DataConnectionString");
You would just want to assign CloudDrive.DataConnectionString
to have DefaultEndpointsProtocol=http
(the default if omitted, but you could be explicit).
ServiceDefinition.csdef
<ServiceDefinition>
<WebRole>
<!-- .... -->
<ConfigurationSettings>
<Setting name="CloudDrive.DataConnectionString" />
</ConfigurationSettings>
</WebRole>
</ServiceDefinition>
ServiceConfiguration.Cloud.cscfg
<ServiceConfiguration>
<Role>
<ConfigurationSettings>
<Setting name="CloudDrive.DataConnectionString" value="DefaultEndpointsProtocol=http;AccountName=YOURNAMESPACE;AccountKey=YOURKEY" />
</ConfigurationSettings>
</Role>
</ServiceConfiguration>