Azure-sdk-for-go: Support for User Assigned Identity in MSI

Created on 8 Nov 2020  路  5Comments  路  Source: Azure/azure-sdk-for-go

Feature Request

When using

NewAuthorizerFromEnvironment()

I'm receiving

No MSI found for specified ClientId/ResourceId

Authentication Client customer-reported question

All 5 comments

Hi @thebenwaters thanks for this issue!

I am not quite if this is the right solution, but you could have a try:

config := auth.NewMSIConfig()
config.ClientID = "your client id" // only specify this when you are using a user assigned identity
authorizer, err := config.Authorizer()

@jhendrixMSFT could you please have a look if the above code is the right way to use MSI authentication?

@ArcturusZhang your example is correct. @thebenwaters can you please let us know if it works for you?

I was having issue with this using a specific resource (Key Vault), but will test and try again

btw) msft: bewaters

Worked on VM, but need to test in Azure Functions (these was mainly where I had the issue)

There were a few bugs with user-assigned identity and azure functions that I recently fixed. Please be sure to use the latest versions of adal and auth modules before testing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CecileRobertMichon picture CecileRobertMichon  路  4Comments

ncw picture ncw  路  4Comments

Tirke picture Tirke  路  3Comments

BrendanThompson picture BrendanThompson  路  3Comments

lawrencegripper picture lawrencegripper  路  4Comments