I have a AutomationAccount with AzureRunAsConnection created there. I can see it in the portal as well as get it in powershell using Get-AzureRmAutomationConnection
and i can see the results.
But when i connect from a Runbook ,it throws exception Kindly help. Thanks
I found the solution here Azure Automation Docs . I used the Login-AzureRmAccount
and Add-AzureRmAccount
. Now i found that we should manually update the modules after creating an Automation account and then use Connect-AzureRmAccount
with the credentials. That worked