In order for gocloud to work "out of the box" using Service Connector it needs to read from this additional environment variable. Check AZURE_STORAGE_CONNECTION_STRING first, and then check AZURE_STORAGEBLOB_CONNECTIONSTRING.
Describe alternatives you've considered
ask Azure to make this environment variable consistent?
In my program that uses azblob check for env var AZURE_STORAGEBLOB_CONNECTIONSTRING, and if present set AZURE_STORAGE_CONNECTION_STRING
Is your feature request related to a problem? Please describe.
For Azure Service Connector, the default connection string environment variable is named
AZURE_STORAGEBLOB_CONNECTIONSTRING
(see docs)However, the
azblob
module reads theAZURE_STORAGE_CONNECTION_STRING
environment variable:https://github.com/google/go-cloud/blob/49a4d98c75ad4a4efafda913d91bbda7ff829931/blob/azureblob/azureblob.go#L322
Describe the solution you'd like
In order for gocloud to work "out of the box" using Service Connector it needs to read from this additional environment variable. Check
AZURE_STORAGE_CONNECTION_STRING
first, and then checkAZURE_STORAGEBLOB_CONNECTIONSTRING
.Describe alternatives you've considered
azblob
check for env varAZURE_STORAGEBLOB_CONNECTIONSTRING
, and if present setAZURE_STORAGE_CONNECTION_STRING
Additional Context
previous relevant PR: https://github.com/google/go-cloud/pull/3072