From 18566aa718a05c989b1647d25697f532225c75ad Mon Sep 17 00:00:00 2001 From: Darren Dowker Date: Wed, 29 Nov 2023 12:08:50 -0800 Subject: [PATCH] another fix --- broker/fragment/store_azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/fragment/store_azure.go b/broker/fragment/store_azure.go index 1a02932f..e97ebd9d 100644 --- a/broker/fragment/store_azure.go +++ b/broker/fragment/store_azure.go @@ -285,6 +285,7 @@ func (a *azureBackend) azureClient(ep *url.URL) (cfg AzureStoreConfig, client pi if err != nil { return cfg, nil, err } + a.sharedKeyCredentials = sharedKeyCred // Arize addition serviceClient, err := service.NewClientWithSharedKeyCredential(cfg.serviceUrl(), sharedKeyCred, &service.ClientOptions{}) if err != nil { return cfg, nil, err @@ -295,7 +296,6 @@ func (a *azureBackend) azureClient(ep *url.URL) (cfg AzureStoreConfig, client pi if err != nil { return cfg, nil, err } - a.sharedKeyCredentials = credentials } else if ep.Scheme == "azure-ad" { // Link to the Azure docs describing what fields are required for active directory auth // https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication-service-principal?tabs=azure-cli#-option-1-authenticate-with-a-secret