[BUG] VisualStudioCredential error AADSTS65002 connecting to Azure Monitor Control Service #44107
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.
issue-addressed
The Azure SDK team member assisting with this issue believes it to be addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Identity 1.11.3
Describe the bug
An error occurs when attempting to authenticate using VisualStudioCredential credentials. The error message indicates a consent issue between the first-party application and resource, requiring preauthorization. (VisualStudioCredential with Azure Monitor Control Service)
Expected behavior
The application should successfully authenticate using the credentials.
Actual behavior
The application fails to authenticate, and the following error message is displayed: AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource 'e933bd07-d2ee-4f1d-933c-3752b819567b' must be configured via preauthorization.
Reproduction Steps
Create a new .Net (8) Web API and add application inishgt as such:
Run the API and access some page.
Environment
Azure Subscription offer: Enterprise Dev/Test
Visual Studio Enterprise 17.9.7
The text was updated successfully, but these errors were encountered: