I created an Azure Automation account with system assigned Managed Identity and the Start/Stop VM Solution enabled. The 'ScheduledStartStop_Parent' runbook runs at its scheduled time but it throws this error:
et-AutomationConnection : RunAsAccount not found. To create this RunAsAccount, navigate to the RunAsAccount blade and create a RunAsAccount. Refer doc for more details (https://docs.microsoft.com/azure/automation/create-runas-account)At line:211 char:37+ ... icePrincipalConnection=Get-AutomationConnection -Name $connectionName+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (:) [Get-AutomationConnection], AssetManagementClientException + FullyQualifiedErrorId : 3,Orchestrator.AssetManagement.Cmdlets.GetAutomationConnectionCmdlet
The documentation recommends not to use RunAsAccount but its throwing an error telling me to create a RunAsAccount.
Is there an extra configuration step with Managed Identity that I'm missing? How do I solve this error?