-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Inject environment variables for subprocess #38452
Comments
Thanks for the feedback, we’ll investigate asap. |
Interesting that Are you encountering the issue on Windows or a Unix-based OS? In any case, I am testing out just using the full path of the executable found from |
Hi @morganics. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
It's on Windows. Happy to test out when the changes land. |
I believe the general issue here should be resolved in the latest release of azure-identity which includes the mentioned change: #38606 |
Hi @morganics. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Is your feature request related to a problem? Please describe.
Using os.environ can cause issues in azure_cli.py, e.g. cannot find the
az
command even when az is on the path.Describe the solution you'd like
Inject os environment variables in to the identity module, so that we're not dependent on the global os.environ variables.
e.g. line 223 on azure_cli.py
Describe alternatives you've considered
Patching os.environ, which isn't great.
Additional context
Messy PATHs can stop the
az
command being found, despiteshutil
locating the appropriate path.The text was updated successfully, but these errors were encountered: