-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
SharedTokenCacheCredential fails in WSL when logged into az CLI #12939
Comments
I am getting the same error on an Ubuntu 18.04 vm running in Azure. I have azure.identity 1.2.0-preview.4. |
Moving to August milestone |
Moving to October milestone. |
We're hitting a similar issue in our container (CDPx ubuntu-1804) executions:
It looks like a similar issue was hit in the past for a different provider: #12749. Would it be possible to implement a more generic solution, where provider failures are reported more clearly (e.g. "provider not available" / "all default providers failed"). |
Issue has been caused by the @ohadschn , what version of Azure.Identity do you have? |
We're using |
Issue is reproducible every time using 1.2.3 |
This is fixed by #15944 and will be released in the 1.3.0 release of Azure.Identity |
I am still experiencing this bug but only when I try to access the key vault from The following line works locally (Windows) but not on Azure (running in a Linux docker container)
The same line is used in the It's a dotnet core 3.1 solution with Azure.Identity v1.3.0. |
@lextas I recommend opening a new issue since this seems unrelated. This bug was a problem with azure CLI credentials running in a WSL2 container. If your managed identity isn't detected from within a container that may be a different issue entirely. |
@lextas did you open an issue for this or figure it out? I'm also trying to figure out how to configure my SecretClient to work with a docker container. |
No I didn't. It worked with the DefaultCredentials but only if my app was already started. If it was in the startup phase (kestrel |
Hi guys, I'm still running into this issue when developing locally in WSL2 (Ubuntu 20.04). The current setup is: If I use: I get: My workaround for now is to use It's worth point out that this doesn't happen when the app is deployed to Azure in a container, uses Managed Identity and |
Seems I can't use the SharedTokenCacheCredential on WSL when logged into the az CLI or PowerShell Core.
Environment
az version
:Stack trace:
Sample code:
Using packages:
The text was updated successfully, but these errors were encountered: