Skip to content
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

[QUERY] DefaultAzureCredential not working on an Azure Arc enabled Windows Server #47647

Closed
courtzzz opened this issue Dec 23, 2024 · 4 comments
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@courtzzz
Copy link

Library name and version

Azure.Identity 1.13.1

Query/Question

Hi there

I have an arc enabled WIndows Server 2022.

Im using DefaultAzureCredential and trying to use the Azure assigned managed identity to Authenticate to Azure key vault (and also azure storage at some stage)

I've populated the environment variable AZURE_CLIENT_ID + AZURE_TENANT_ID with the Id of this managed identity and you can see the other related environment variables

Image

But on starting the windows service I just get:

Image

AuthenticationFailedException. User assigned managed identity is not supported by the detected managed indentity environment

SO confused - I thought this was supported in Arc enabled servers? If this is not the way to do it in the Porgram startup, then how is it done? Im trying to not use the AZURE_CLIENT_SECRET

Environment

No response

@github-actions github-actions bot added Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 23, 2024
Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@christothes
Copy link
Member

Does it work if you remove the defined AZURE_CLIENT_ID + AZURE_TENANT_ID environment variables? Setting an AZURE_CLIENT_ID will cause DefaultAzureCredential to treat this like a user-assigned managed identity, by default. Not specifying anything will default in a system assigned identity.

@christothes christothes added the needs-author-feedback Workflow: More information is needed from author to address the issue. label Jan 6, 2025
@github-actions github-actions bot removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

Hi @courtzzz. 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.

@courtzzz
Copy link
Author

courtzzz commented Jan 6, 2025

Yes removing all the environment variables works.

I don't that was super clear from all the documents I read. Hopefully this ticket helps someone else.

@github-actions github-actions bot added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Jan 6, 2025
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure Identity SDK Improvements Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
Development

No branches or pull requests

2 participants