Allow authentication using connection string when targeting Azure Blob Storage (#383)

* Allow authentication using connection string when targeting Azure Blob Storage

* Bail on ambiguous configuration
This commit is contained in:
Frederik Ring
2024-03-08 20:23:30 +01:00
committed by GitHub
parent e8562b1785
commit baf34ec1f7
4 changed files with 22 additions and 3 deletions

View File

@@ -193,6 +193,7 @@ func (s *script) init() error {
PrimaryAccountKey: s.c.AzureStoragePrimaryAccountKey,
Endpoint: s.c.AzureStorageEndpoint,
RemotePath: s.c.AzureStoragePath,
ConnectionString: s.c.AzureStorageConnectionString,
}
azureBackend, err := azure.NewStorageBackend(azureConfig, logFunc)
if err != nil {