An Azure service that is used to automate, configure, and install updates across hybrid environments.
To upgrade existing PowerShell 7.2 runbooks to a higher version in Azure Automation, use Runtime environment. The newer PowerShell versions are created and managed through a Runtime environment, not through the older Create a runbook runtime version dropdown shown in the screenshot.
Supported and recommended versions in Azure Automation are:
- PowerShell 7.4 and PowerShell 5.1
- Azure Automation also announced PowerShell 7.6 support in public regions
- PowerShell 7.1 and 7.2 are being retired on 30 September 2026
Use this upgrade path:
- In the Azure portal, open the Automation account.
- Under Process Automation, select Runtime Environments.
- If Runtime Environments is not visible, select Try Runtime environment experience on the Overview page.
- Select Create.
- On Basics:
- Enter a name for the runtime environment.
- Set Language to PowerShell.
- Set Runtime version to 7.4.
- Enter a description.
- On Packages, review the default Az and Azure CLI packages, and add any required packages from the gallery.
- Select Create.
- Link the existing runbook to the new Runtime environment.
Azure Automation documentation states that upgrading a runbook from one runtime version to another is done by creating a different Runtime environment and then linking the runbook to it.
Important behavior after retirement:
- Runbooks using retired runtime versions can still be created, deployed, and run.
- They move to a reduced-support state.
- They do not receive new features, security updates, or performance optimizations until updated.
- In some cases, platform scaling can be limited.
If only 7.2 or lower appears in the legacy runbook creation UI, that is expected for the older experience. Use Runtime Environments to move to the newer supported runtime.