Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
584 stars 111 forks source link

No subscription found on asw deploy #727

Closed Code-Divine closed 11 months ago

Code-Divine commented 11 months ago

When I try to run asw deploy it shows tells me "No valid subscription found for tenant". But I do have Azure Sponsorship subscription for a fact and I have no issues working with azure cli.

If I specify the subscription id during login I get

The access token is from the wrong issuer 'https://sts.windows.net/1131e-123123-123123-123-1231231/'. It must match the tenant 'https://sts.windows.net/234234-34234-234234-234234-234234234/' associated with this subscription. (ID's scrambled intentionally)

But that is even more confusing, I have only one azure account, one subscription, one tenant. I just registered with azure.

cjk7989 commented 11 months ago

Thanks for reporting. Could you run "swa login --verbose=silly" and provide a complete and detailed log with personal information removed? Also, could you try specifying tenant id by "--tenant-id" instead of "--subscription-id"?