azuredatastudio: Unable to get a token for Data Explorer/Log Analytics clusters hosted on Azure China
- Azure Data Studio Version: 1.42.0
- OS Version: Windows 11 Enterprise 22H2
Steps to Reproduce:
Scenario 1 (Azure Data Explorer) :
- Add an Azure account hosted in Azure China
- Attempt to connect to an Azure Data Explorer Cluster (optional parameters omitted)
Connection type : Azure Data Explorer (Kusto)
Cluster : <cluster-url>
Authentication type : Azure Active Directory - Universal with MFA support
Account : <az-china-account>
Database : <Default>
- Connect, get the following error :
Error: failed to get token.
Scenario 2 (Log Analytics Workspace) :
- Add an Azure account hosted in Azure China
- Attempt to connect to a Log Analytics Workspace (optional parameters omitted)
Connection type : Azure Monitor Logs
Workspace ID : <workspace-id>
Authentication type : Azure Active Directory - Universal with MFA support
Account : <az-china-account>
- Connect, get the following error :
Error: invalid_request occurred when acquiring token.
65002 - [2023-03-24 11:07:48Z]: AADSTS65002: Consent between first party application 'REDACTED' and first party resource 'REDACTED' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
Trace ID: REDACTED
Correlation ID: REDACTED
Timestamp: 2023-03-24 11:07:48Z - Correlation ID: REDACTED - Trace ID: REDACTED
Does this issue occur when all extensions are disabled?: N/A
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 25 (9 by maintainers)
I had to revert back to version 1.41.3 to get it to work again.
Same problem here, can’t use log analytics in azure data studio… West europe.
The Log Analytics Workspace can not be reached. Please validate the Workspace ID, the correct tenant is selected, and that you have access to the workspace. Error Message: The provided authentication is not valid for this resource
Any workarounds at all ?
Encountering the same with US East - Log Analytics - Public Cloud
Hello ! Getting the following error :
Hi @ludwhe, yes we are working with the Log Analytics team to get our app pre-authorized, we will let you know once this process is complete.