From this MSDN article it says that the connection string for connecting to the storage account must be HTTP and not HTTPS.
When I use this constructor:
public CloudDrive (
Uri uri,
StorageCredentials credentials
)
Does that mean the Uri to the page blob must also be HTTP and not HTTPS? I am a bit confused regarding which parameter (or both together) fits the 'connection string' description.
This scenario does not seem to be easily testable in dev emulator.
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. Thecredentialsrepresent the user/pass which together with theURIcomprise the connection string to the Azure cloud storage service.The
URIwill always be HTTP assuming you are using the local emulator.When deploying to Azure, the
URIscheme will be whatever you assign it in the service configuration (ServiceDefinition.csdef / ServiceConfiguration.Cloud.cscfg).You would just want to assign
CloudDrive.DataConnectionStringto haveDefaultEndpointsProtocol=http(the default if omitted, but you could be explicit).ServiceDefinition.csdef
ServiceConfiguration.Cloud.cscfg