In Azure Automation a Runtime Environment defines the language, version and packages (modules) a Runbook runs with, for example PowerShell-7.2 with the Az modules. Automation App discovers the runtime environments and their packages in your Automation Accounts every time an Automation Account is imported.

The list of runtime environments

Click the Runtime Environments (cube) icon in the rail.

Runtime Environments

Use Search environments, Automation Account and Runtime language to narrow the list.

Click the Open icon to see an environment’s language, version and description, and when it was last discovered. The details are divided into tabs:

  • Default package configuration: the configured default packages, for example az version 11.2.0.
  • Environment packages: the packages uploaded to the environment, with version, origin, provisioning state and size. Use Search packages and Package origin to narrow the list.
  • Module & cmdlet health: the module health of the environment. See Module and cmdlet health.
  • Linked runbooks: the Runbooks that use the environment.

Runtime Environment details

Click Open in Azure to open the environment in the Azure portal, for example to add or update packages.

Notice: This page is read-only. Click Refresh inventory to reload the data stored in ServiceNow. To get the latest data from Azure, run an import of the Automation Account from Setup.

Module and cmdlet health

Automation App checks the modules in your runtime environments against a catalogue of known deprecated and retired modules. The initial catalogue covers AzureAD, AzureADPreview, MSOnline and AzureRM, all of which Microsoft has retired or deprecated.

Click the Module & Cmdlet Health (heart) icon in the rail to see the report for all your Automation Accounts. The same information is shown on the Module & cmdlet health tab of each runtime environment.

Module and cmdlet health

At the top the report counts Environments requiring action, Module entries requiring update, Module entries to replace and Incomplete / stale environments. Use Search health modules and Health findings to narrow the findings. For each finding you can see the Automation Account and environment, the module and version, the issue and evidence, the recommended action and any deadline. Environments that could not be assessed, for example because discovery failed or the environment is a Python environment, are shown separately so they are not mistaken for healthy environments.

Relevant inventory changes queue a health assessment, and a separate scheduled job runs once daily by default. Authorized administrators can click Reassess stored inventory to request an immediate evaluation. Click Refresh health report to reload the report. See Scheduled Processing for details.

Notice: The report is based on module names and versions. It does not check which cmdlets your Runbooks use. No finding does not guarantee that a module is supported.

Administrators can add their own rules, for example a minimum approved version of a module or a lifecycle deadline. Click Lifecycle rule catalog at the top of the report to open the rules. Catalog changes may wait until the next scheduled assessment unless reassessment is explicitly requested.

Azure permissions

Discovering runtime environments and packages requires extra read permissions in Azure. See Microsoft Azure Setup.