Skip to content

User defined Managed Identity #1401

Answered by jagsridharan
jagsridharan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jansenbe ,

Apologies I couldn't come back earlier. I managed to get the Managed Identity work with the user-defined identity based on the sample you provided but with a bit of changes.

I followed this sample you provided, however I had to change the credential code to:

var credential = new DefaultAzureCredential();

The ChainedTokenCredential code below is not working for some reason, I may have to check this further:

var credential = new Azure.Identity.ChainedTokenCredential(
   new ManagedIdentityCredential(),
   new EnvironmentCredential()
 );

If I use the DefaultAzureCredential, it is able to pick up teh Client Id using AZURE_CLIENT_ID Environment variable as discussed here.

Thank…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jagsridharan
Comment options

@jansenbe
Comment options

@jagsridharan
Comment options

@jagsridharan
Comment options

Answer selected by jansenbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants