2

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.enter image description here

But when i connect from a Runbook ,it throws exceptionenter image description here Kindly help. Thanks

HariHaran
  • 3,642
  • 2
  • 16
  • 33

2 Answers2

0

Why don't you refer to the official docs? I guess you'll find your solution here.

Ojasvi Bhargava
  • 312
  • 1
  • 2
  • 10
0

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

HariHaran
  • 3,642
  • 2
  • 16
  • 33
  • What does that mean? Did you edit the script? What edits did you specifically make? – lcj Aug 02 '22 at 12:01
  • This is my question: https://stackoverflow.com/questions/73201637/connection-azurerunasconnection-not-found-when-running-backup-azure-sql-datab – lcj Aug 02 '22 at 12:03