You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MI doesn't work for environments that don't have a shell #2647
That allow excluding flows from the authentication chain.
The ability to supply my own or modify the options should work.
Reproduction steps
Use MI on a container build from a distroless image.
Error message
AzureCliCredential authentication failed: An error occurred trying to start process '/bin/sh' with working directory '/bin/'. No such file or directory
You need to set the environment variable AZURE_EXCLUDE_AZURE_CLI_CREDENTIAL to true
This will prevent the DefaultAzureCredential from using the Azure CLI credential provider. You can also use other environment variables to exclude other credential types, such as AZURE_EXCLUDE_INTERACTIVE_BROWSER_CREDENTIAL, or VS, VS Code, etc ..
Activity
jmprieur commentedon Jan 22, 2024
You need to set the environment variable
AZURE_EXCLUDE_AZURE_CLI_CREDENTIALtotrueThis will prevent the
DefaultAzureCredentialfrom using the Azure CLI credential provider. You can also use other environment variables to exclude other credential types, such as AZURE_EXCLUDE_INTERACTIVE_BROWSER_CREDENTIAL, or VS, VS Code, etc ..joerattazzi-microsoft commentedon Jan 23, 2024
Thanks for the response, Jean-Marc Prieur (@jmprieur) .
I've tried setting that environment variable in our helm chart. I can see this set on the environment variables list, but same failure occurs:
Can you confirm this is the right Environment Variable to set, please? Thanks!
joerattazzi-microsoft commentedon Feb 28, 2024
Jean-Marc Prieur (@jmprieur) - any chance you can weigh in on this?
joerattazzi-microsoft commentedon Mar 20, 2024
Jean-Marc Prieur (@jmprieur) - bump
jmprieur commentedon Mar 20, 2024
I think this was fixed in the latest version.
Do you mind to check?
jmprieur commentedon Apr 11, 2024
Keegan (@keegan-caruso). I believe this is done?
keegan-caruso commentedon Apr 11, 2024
Working through previews with a partner. Not on main yet.