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

weird url used #139

Closed SquirrelAssassin closed 7 years ago

SquirrelAssassin commented 7 years ago

I have a new powershell open, run the following and it works:

Login-AzureRmAccount -ServicePrincipal -TenantId $spnact.tenantid -ApplicationId $spnact.ApplicationID -CertificateThumbprint $spnact.CertificateThumbprint -subscriptionId $spnact.SubscriptionId

get-azurermroleassignment -resourcegroup "something"

After I load azure automation authoring tool kit and sign in, it errors out.

I run a debug and saw the difference the absolute uri from the http request say

Absolute Uri: https://graph.windows.net/6ac7a1f4-5fb1-4153-bb4f-12d2020a1f7d/getObjectsByObjectIds?api-version=1.6-internal

On the powershell ise that works .. the one without azure automation toolkit loaded I see the following

Absolute Uri: https://graph.windows.net/6ac7a1f4-5fb1-4153-bb4f-12d2020a1f7d/getObjectsByObjectIds?api-version=1.6

Notice the -internal on the one that does not work, is there a dll that is loaded that needs to be updated that loads with this?

SquirrelAssassin commented 7 years ago

update, I deleted the AzureAutomationAuthoringToolkitConfig.json located in c:\ users \ "profileuser" \ ... loaded new ise .... unticked run as ... signed in and it worked.