Closed sqlworldwide closed 6 months ago
Is there an update on this issue? Error message changed. Now I see this why trying to run the same command.
KqlError: {"error":{"message":"The provided authentication is not valid for this resource","code":"InvalidTokenError","correlationId":"5bfd7f47-56a0-408e-9559-b4493f87323e","innererror":{"code":"InvalidAuthenticationTokenTenant","message":"The access token is from the wrong issuer 'https://sts.windows.net/dfb41db2-24dd-436a-acd1-0b12ee3de452/'. It must match the tenant 'https://sts.windows.net/d5b50601-6698-4f8f-beb6-1799fee4dc80/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/d5b50601-6698-4f8f-beb6-1799fee4dc80' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later."}}}
should work
Thank you, will test.
It still only works if it is a work or school account and not a personal account. You can check the backend.
%kql loganalytics://workspace='d42a9746-53c0-42f7-b3c4-db3dd8966d3d';alias="kustodemows" -try-azcli-login-by-profile
Code Sample, a copy-pastable example if possible
Problem description
Once I execute the above code, I get a code "FXNLBDXSU Copy code to clipboard and authenticate". I cannot authenticate using my portal account (which is not a school or work account). I get an error:
Output of
pip freeze
and%kql --bugreport
[bugreport must be executed immediatly after bug noticed]