How to update my runbooks to supported runtime versions of Python and PowerShell.

Silvia Baruzzo 25 Reputation points
2026-07-15T13:52:44.4166667+00:00

I received a notification that I'm currently using Azure Automation Runbooks running on unsupported runtime versions - Python 2.7, Python 3.8, and PowerShell 7.1 & 7.2.
I need to update the runtime version, but following this guide https://learn.microsoft.com/en-us/azure/automation/quickstart-update-runbook-in-runtime-environment I cannot find the box to perform the update.

Even if I try to create a new runbook, the last PowerShell version I can select is 7.2.

How can I proceed?

Thank you

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.


Answer accepted by question author

Christos Panagiotidis 3,301 Reputation points
2026-07-16T05:48:40.7233333+00:00

That dropdown is easy to misread: the list shown while editing or creating a runbook contains Runtime Environments that already exist in the Automation account. It is not the catalog of every supported PowerShell version. The 7.2 entry is normally the system-generated environment carried over from the classic experience.

Create the target environment first:

  1. Open the Automation account and go to Process Automation > Runtime Environments > Create.
  2. Choose PowerShell and version 7.4, then review the default Az package and add any modules your runbook needs.
  3. Create the environment and refresh the list.
  4. Open the existing runbook, select Edit in portal, choose the new 7.4 environment, test it, and only then publish.

For Python, create a separate Python 3.10 environment and link compatible runbooks to it.

If 7.4 is missing on the Runtime Environment Create page itself, check the Automation account location. Runtime Environments and PowerShell 7.4 are supported in public Azure regions except Brazil Southeast and government clouds. If the region is supported, try the documented REST creation method or open an Azure support request; recreating the runbook will not fix a missing environment.

Microsoft's steps and REST example are here: Manage Runtime Environments and update a runbook to PowerShell 7.4.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.