azureautomation / azure-automation-ise-addon

The Azure Automation PowerShell ISE Add-On makes it easy to author and test your runbooks in your local PowerShell ISE
https://www.powershellgallery.com/packages/AzureAutomationAuthoringToolkit/
Other
122 stars 24 forks source link

Addon doesn't use the UPN in the "Sign in to Azure Automation" field #160

Open obeliskm opened 6 years ago

obeliskm commented 6 years ago

Less a bug, more a UX issue...

When I quit and then restart the add-on, in the "Sign in to Azure Automation" field, it has the UPN that I last used to login with the plugin (say, admin@onmicrosoft.com). OTOH, my Win 10 desktop is bound to Azure AD as (say) user@onmicrosoft.com.

When I click the "Sign In" button, the Addon seems to ignore the current field value (admin@...), and instead SSO's into Azure as user@. My user account has no admin rights in Azure, so the add-on throws the "No subscriptions found for this user account, please create one in the Azure portal" and grinds to a halt. Then, in the add-on, I click "switch user", type in "admin@onmicrosoft.com", and after password and MFA challenge, I'm in as the user I want to connect as.

This causes a certain amount of teeth grinding, is there some way the addon can be persuaded to honour the value in the Sign In field?

Cheers simon