Skip to content

Commit

Permalink
Update Azure MSI endpoint (#10624)
Browse files Browse the repository at this point in the history
* Update Azure MSI endpoint

* Add changelog

---------

Co-authored-by: Jim Kalafut <[email protected]>
Co-authored-by: Violet Hynes <[email protected]>
Co-authored-by: Tom Chwojko-Frank <[email protected]>
  • Loading branch information
4 people authored Jun 4, 2024
1 parent 0d9e944 commit af47fc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/10624.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
storage/azure: Updated metadata endpoint to `GetMSIEndpoint`, which supports more than just the metadata service.
```
2 changes: 1 addition & 1 deletion physical/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit af47fc9

Please sign in to comment.