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

Logon fails if one of the subscription has conditional access block #146

Closed JakobGSvendsen closed 6 years ago

JakobGSvendsen commented 6 years ago

Hey!

I have access to multiple customers Azure AD using my main account. One of my customer decided to add conditional access to their subscription.

This makes it impossible for me to use the Add-in, as the error message pops up and afterwards the logon procedure is "user cancelled logon"

This is the error I am talking about: image

To fix it, I have made a change in the client so that it skips any failed ADs. it might not be the best way, you might know a better way to do it, but this does work. Error still pops up but logon procedure does not fail.

I will add a pull request in a sec for the changes.

JakobGSvendsen commented 6 years ago

oops. closing this as I made a duplicate.