Hello Andre, Welcome to MS Q&A
To update the Runtime version for Azure Process Automation/Runbooks using PowerShell, you can follow these steps:
Create a Runtime Environment:
- Sign in to the Azure portal and select your Automation account.
- Under Process Automation, select Runtime Environments (preview).
- Select Create to create a new PowerShell Runtime environment (e.g., PowerShell 7.2).
- Fill in the required details and select Create.
- In the Automation account, navigate to the Runbooks page and select the runbook linked to the old Runtime environment. - Select Edit in the portal. - From the dropdown, select the new Runtime environment you created. - Make necessary changes to the runbook code to ensure compatibility with the new Runtime version. - Test the upgraded runbook using the Test pane. - Once confirmed, publish the runbook to production.
- Select Create to create a new PowerShell Runtime environment (e.g., PowerShell 7.2).
- Under Process Automation, select Runtime Environments (preview).
By following these steps, you can successfully update the Runtime version of your Azure Automation runbooks.
References:
- Update runbook from PowerShell 5.1 to PowerShell 7.2
- Update runbook from PowerShell 5.1 to PowerShell 7.2
Please let us know if any ques
Kindly accept answer if it helps
Thanks
Deepanshu