You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using azureResourceGroups.login, log in to two different accounts in Azure. (Note: I did this because I was testing a different Azure account, but it wasn't obvious how to sign out of the first one, I assumed this would do it.)
in the editor's context menu for main.bicep, click "Deploy Bicep File..."
Click enter for default deployment name
!) Next you should see a picklist of subscriptions, but you will instead see ,in the Output window, under "Bicep Operations", this error:
1:57:16 PM: Deployment failed for c:\Users\stephwe\Downloads\main.bicep. You are not signed in to an Azure account. Please sign in.
EXPECTED: should work
More details:
We call isSignedIn(), which finds that there's a session open for the first account and returns true. So then we call getSubscriptions(), which calls getTenants() on each account. The second getTenants() call throws because the second account doesn't have an open session:
!) Next you should see a picklist of subscriptions, but you will instead see ,in the Output window, under "Bicep Operations", this error:
More details:
We call isSignedIn(), which finds that there's a session open for the first account and returns true. So then we call getSubscriptions(), which calls getTenants() on each account. The second getTenants() call throws because the second account doesn't have an open session:
The text was updated successfully, but these errors were encountered: