Azure DataExplorer - autorization code

itay4 31 Reputation points
2024-05-13T07:58:55.7766667+00:00

I want to create the token using the authorization code flow, I use this scope: https://management.azure.com/.default
but I keep getting this error:
'HTTP/1.1 401 Unauthorized\r\n'
header: WWW-Authenticate: Bearer authorization_uri="https://login.microsoftonline.com/common", error="invalid_token", <XX_REPLACED> audience 'https://management.azure.com' is invalid"

when sending the request to: kusto.windows.net:443 "POST /v1/rest/query HTTP/1.1" 401 0

what is the problem?
My user has all the required permissions to the database: Cluster AllDatabasesAdmin

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
487 questions
{count} votes