Azure-Samples / azure-sdk-for-go-samples

Examples of how to utilize Azure services from Go.
MIT License
297 stars 184 forks source link

The MSI endpoint is not available #283

Open blucas-accela opened 4 years ago

blucas-accela commented 4 years ago

This issue is a: (mark with an x)

Steps to reproduce:

  1. Ran code as provided setting environment variables as requested.

Errors and log messages:

Listing secret names in keyvault: unable to get list of secrets: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://****.vault.azure.net/secrets?api-version=2016-10-01: StatusCode=0 -- Original Error: the MSI endpoint is not available exit status 1

Expected behavior:

Secrets listed

OS and Go versions:

OS = macOSx 10.15.6 Go = go version go1.14.2 darwin/amd64

Further info:

I've tested with both a Managed System Identity and a User Managed Identity for the AZURE_CLIENT_ID but neither works. I've added and verified all permissions necessary to hit the Azure KeyVault both using the KV Access Policy list as well as via the Identity's RBAC.

scott1138 commented 3 years ago

@blucas-accela - did you ever figure this out? I'm having a similar issue.