Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedIdentityClient uses AZURE_CLIENT_ID when available #19062

Closed

Conversation

christothes
Copy link
Member

@christothes christothes commented Feb 26, 2021

closes #11448
related to #8309

@ghost ghost added the Azure.Identity label Feb 26, 2021
@@ -27,13 +26,13 @@ public ManagedIdentityClient(CredentialPipeline pipeline, string clientId = null
public ManagedIdentityClient(ManagedIdentityClientOptions options)
{
_options = options;
ClientId = options.ClientId;
ClientId = options.ClientId ?? EnvironmentVariables.GetNonEmptyStringOrNull(EnvironmentVariables.ClientId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to change this to read the environment variable. By design only the DefaultAzureCredential and EnvironmentCredential are configurable through the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Add support for AZURE_CLIENT_ID environment variable to ManagedIdentityCredential
2 participants