azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Failed to get subscriptions for my account

Open Agdvstelt opened this issue 1 year ago • 3 comments

Everything works fine, with all accounts and subscriptions I have, except for my personal account.

In Azure Storage explorer this same account+subscription works fine.

Only in Azure Data Studio this issue occurs. Fresh install already done but did not help, by the way it saved all my previous connection, perhaps I should have removed them somehow? Anyone other idears?

Failed to get subscriptions for account [email protected] - [email protected] (tenant 'efe7c35f-e3b9-49ac-98c0-718323d17f6a'). Error: invalid_grant occurred when acquiring token. 9002313 - [2024-02-08 10:23:38Z]: AADSTS9002313: Invalid request. Request is malformed or invalid. Trace ID: bb281aaa-f6a8-4180-ab5c-2332292a6300 Correlation ID: f31ca9ce-5fa2-43e8-8d93-d51afa485220 Timestamp: 2024-02-08 10:23:38Z - Correlation ID: f31ca9ce-5fa2-43e8-8d93-d51afa485220 - Trace ID: bb281aaa-f6a8-4180-ab5c-2332292a6300

image

Agdvstelt avatar Feb 08 '24 10:02 Agdvstelt

Didn't find much info, but this looks related: https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/3088#issuecomment-786323200 Need to see if we are url decoding before fetching Code or not.. that may be the reason this occurs.

cheenamalhotra avatar Feb 08 '24 10:02 cheenamalhotra

Didn't find much info, but this looks related: AzureAD/microsoft-authentication-library-for-js#3088 (comment) Need to see if we are url decoding before fetching Code or not.. that may be the reason this occurs.

Thnx sofar, don't think this is helpfull unfortunately :( Somehow i'm able to connect to resources in that same subscription, but not by using my account +subscription.

Agdvstelt avatar Feb 08 '24 11:02 Agdvstelt

I'm getting the same error message whenever I'm trying to access subscriptions that are associated with a different tenant than the home tenant for my account. We are using Cross-tenant synchronization to synchronise accounts from one tenant to the other and I can access subscriptions in the original tenant, but not subscriptions in the destination tenant apparently.

A similar thing happens when trying to connect to an Azure Postgres Flexible Server that is deployed to a subscription in the non-home tenant, even though I'm explicitly choosing the correct tenant in that case. This totally breaks accessing the server using Entra ID which is a bit of bummer. Any updates on this?

jmezach avatar Apr 05 '24 09:04 jmezach