-
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
[BUG] Failed to get user details from Visual Studio Code #17364
Comments
Hi @kummerer94. Thank you for reaching out and we regret that you're experiencing difficulties. I'm going to move this over to the Python SDK repository to ensure that the folks best able to assist can be looped in. |
Thanks for opening this issue. If not, could you please try it again with debug-level logging? For example: import logging
import sys
logger = logging.getLogger('azure.identity')
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(stream=sys.stdout)
logger.addHandler(handler) That will capture the details of any exception. |
@chlowell Thanks for the quick response! I ran the authentication again with your suggestion and that was the output:
|
Looks like |
The problem seems to be that I commented out a few lines in my settings. While normally JSON does not support comments, the I have removed the comments and it works now! Thanks for helping me out. |
You're welcome. Please open another issue if you encounter another problem. |
Describe the bug
I am trying to use
DefaultAzureCredential
from theazure-identity
python package, but it will not work together with VS code.I have logged into Azure in VS Code using the "Azure Account" extension. The device code login does work for my setup, but not the
VisualStudioCodeCredential
.A similiar report can be found here: Azure/azure-sdk-for-net#14770. However, I am on Windows.
Expected behavior
The credential should be retrieved from VS code.
Actual behavior (include Exception or Stack Trace)
I get the exception: CredentialUnavailableError: Failed to get Azure user details from Visual Studio Code.
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
VisualStudioCodeCredential()
.msgraphcore
package.Environment:
azure-identity==1.5.0
,msgraphcore==0.0.2
dotnet --info
output for .NET Core projects): Windows 10 Pro, Python 3.8.3The text was updated successfully, but these errors were encountered: