diff --git a/changelog/10624.txt b/changelog/10624.txt new file mode 100644 index 0000000000..fdb473b80d --- /dev/null +++ b/changelog/10624.txt @@ -0,0 +1,3 @@ +```release-note:improvement +storage/azure: Updated metadata endpoint to `GetMSIEndpoint`, which supports more than just the metadata service. +``` diff --git a/physical/azure/azure.go b/physical/azure/azure.go index a4eb29f899..b655df8d3c 100644 --- a/physical/azure/azure.go +++ b/physical/azure/azure.go @@ -344,7 +344,7 @@ func (a *AzureBackend) List(ctx context.Context, prefix string) ([]string, error // getAuthTokenFromIMDS uses the Azure Instance Metadata Service to retrieve a short-lived credential using OAuth // more info on this https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview func getAuthTokenFromIMDS(resource string) (*adal.ServicePrincipalToken, error) { - msiEndpoint, err := adal.GetMSIVMEndpoint() + msiEndpoint, err := adal.GetMSIEndpoint() if err != nil { return nil, err }