-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[FEATURE REQ] Add support for AZURE_CLIENT_ID environment variable to ManagedIdentityCredential #8436
Comments
Just to confirm the design here: This will allow the user to call the second constructor shape, and then inside the constructor we'll check for the environment variable. If it exists, we'll act as if they called the first constructor with it? |
Please follow up with @schaabs before implementing. |
@jonathandturner I don't think this is the design we want. The user already has the ability to specify no clientId to the constructor, in which case we consider the credential to not be a user assigned identity, but rather a system assigned identity, and I think we need to maintain this behavior. In .NET what we have done is to read the environment variable only when constructing this credential from the |
Can't you guys consider checking AZURE_CLIENT_MANAGED_ID if clientId was not passed to constructor. Some of customers want to use USER assigned identities and If internally ManagedIdentityClient cannot read clientId, instead of: |
We had started reading the AZURE_CLIENT_ID env variable to pick up the clientId for ManagedIdentityCredential when one uses the DefaultAzureCredential almost a year ago. It was added in #7994 Is this issue about the need for ManagedIdentityCredential to do the same itself when used directly? |
The latest design approach is to have the Managed Identity Credential read in client-id from environment variable “AZURE_MANAGED_IDENTITY_CLIENT_ID” Thanks to @g2vinay for the help 🤝 |
Based on our emails, we’ve decided not to include this change. I’m closing this issue. |
Library or service name.
Azure Identity
Is your feature request related to a problem? Please describe.
Developers need to be able to specify which AZURE_CLIENT_ID Managed Identity Credential with an environment variable.
#5696
#6769
The text was updated successfully, but these errors were encountered: