automation account
1 TopicStart Azure V2 VMs Azure Automation Graphical PowerShell runbook - Best solution to replace
Hello! Hope you all are doing great. Currently, we are encountering a challenge in our Azure environment with a need to transition from deprecated RunAs Accounts to Managed Identity for our Automation Account runbooks. We have successfully deployed the "Start Azure V2 VMs Azure Automation Graphical PowerShell" runbook (refer: https://github.com/azureautomation/start-azure-v2-vms) in our environment. It is configured with numerous schedules for various VMs. Although we have adjusted the 'Connect to Azure' graphical interface section, it appears that the runbook continues to utilize the RunAs Account connection in other areas. I'm struggling to find an effective way to modify this. Moreover, the commands executed by the runbook are based on the AzureRM module, which is slated for deprecation soon. I am reaching out to solicit your guidance on the following queries: Is there an efficient and standard method to transition these runbooks from using RunAs Accounts? How can we effectively convert the AzureRM code in the graphical sections to the Az Module? Is there an alternate, perhaps newer, method to schedule VM start and stop in Azure that we should consider migrating to? Thank you in advance for your assistance and insight on this matter. Looking forward to your recommendations. Best regards,656Views0likes0Comments