Closed SquirrelAssassin closed 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?
update, I deleted the AzureAutomationAuthoringToolkitConfig.json located in c:\ users \ "profileuser" \ ... loaded new ise .... unticked run as ... signed in and it worked.
I have a new powershell open, run the following and it works:
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?