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

DefaultAzureCredential VisualStudioCredential Requires Administrator Permissions on Developer Machine? #43954

Closed
sguidos opened this issue May 9, 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-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@sguidos
Copy link

sguidos commented May 9, 2024

Library name and version

Azure Identity 1.11.2

Query/Question

When using DefaultAzureCredential, the VisualStudioCredential failed when the user was not an Administrator on their development machine. One of the developers was getting the error:

[Informational] Azure-Identity: VisualStudioCredential.GetToken invoked. Scopes: [ https://vault.azure.net/.default ] ParentRequestId: e5e1c1cc-8cc2-456b-b0cb-5d79754338e0
[Informational] Azure-Identity: VisualStudioCredential.GetToken was unable to retrieve an access token. Scopes: [ https://vault.azure.net/.default ] ParentRequestId: e5e1c1cc-8cc2-456b-b0cb-5d79754338e0 Exception: Azure.Identity.CredentialUnavailableException (0x80131500): Process "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" has failed to get access token in 30 seconds.

which was resolved when they were made a Local Admin on their machine (Visual Studio was apparently installed by the IT department and not the developer). Or was the issue that they did not have permissions to the folder where Microsoft.Asal.TokenService.exe was located? The requirement should be noted somewhere, to assist others in future troubleshooting, thanks.

Environment

Windows 11, Visual Studio Pro 2022, .NET 6.0

@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 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 May 9, 2024
Copy link

github-actions bot commented May 9, 2024

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

@christothes
Copy link
Member

Hi @sguidos -
I'm not aware of any requirement by the Microsoft.Asal.TokenService.exe process for the user to be an admin. If you are able to reproduce this, what happens if you attempt to run the Microsoft.Asal.TokenService.exe directly, using the path from the error?

Also, could you provide the version of Visual Studio you are running (from Help->About)?

@christothes christothes added the needs-author-feedback More information is needed from author to address the issue. label May 9, 2024
Copy link

github-actions bot commented May 9, 2024

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

@github-actions github-actions bot removed the needs-team-attention This issue needs attention from Azure service team or SDK team label May 9, 2024
Copy link

Hi @sguidos, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label May 16, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
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-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. 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