You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: This article describes the types of runbooks that you can use in Azure Automation and considerations for determining which type to use.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 12/28/2022
6
+
ms.date: 03/29/2023
7
7
ms.topic: conceptual
8
8
ms.custom: references_regions
9
9
---
@@ -35,7 +35,7 @@ The PowerShell version is determined by the **Runtime version** specified (that
35
35
The same Azure sandbox and Hybrid Runbook Worker can execute **PowerShell 5.1** and **PowerShell 7.1 (preview)** runbooks side by side.
36
36
37
37
> [!NOTE]
38
-
> - Currently, PowerShell 7.2 (preview) runtime version is supported in five regions for Cloud jobs only: West Central US, East US, South Africa North, North Europe, Australia Southeast
38
+
> - Currently, PowerShell 7.2 (preview) runtime version is supported for both Cloud and Hybrid jobs in all Public regions except Australia Central2, Korea South, Sweden South, Jio India Central, Brazil Southeast, Central India, West India, UAE Central, and Gov clouds.
39
39
> - At the time of runbook execution, if you select **Runtime Version** as **7.1 (preview)**, PowerShell modules targeting 7.1 (preview) runtime version are used and if you select **Runtime Version** as **5.1**, PowerShell modules targeting 5.1 runtime version are used. This applies for PowerShell 7.2 (preview) modules and runbooks.
40
40
41
41
Ensure that you select the right Runtime Version for modules.
@@ -112,15 +112,14 @@ The following are the current limitations and known issues with PowerShell runbo
112
112
**Limitations**
113
113
114
114
> [!NOTE]
115
-
> Currently, PowerShell 7.2 (preview) runtime version is supported in five regions for Cloud jobs only: West Central US, East US, South Africa North, North Europe, and Australia Southeast.
115
+
> Currently, PowerShell 7.2 (preview) runtime version is supported for both Cloud and Hybrid jobs in all Public regions except Australia Central2, Korea South, Sweden South, Jio India Central, Brazil Southeast, Central India, West India, UAE Central, and Gov clouds.
116
116
117
117
- You must be familiar with PowerShell scripting.
118
118
- For the PowerShell 7 runtime version, the module activities are not extracted for the imported modules.
119
119
-*PSCredential* runbook parameter type is not supported in PowerShell 7 runtime version.
120
120
- PowerShell 7.x does not support workflows. See [this](/powershell/scripting/whats-new/differences-from-windows-powershell#powershell-workflow) for more details.
121
121
- PowerShell 7.x currently does not support signed runbooks.
122
122
- Source control integration doesn't support PowerShell 7.2 (preview). Also, PowerShell 7.2 (preview) runbooks in source control gets created in Automation account as Runtime 5.1.
123
-
- Currently, only cloud jobs are supported for PowerShell 7.2 (preview) runtime versions.
124
123
- Logging job operations to the Log Analytics workspace through linked workspace or diagnostics settings are not supported.
125
124
- Currently, PowerShell 7.2 (preview) runbooks are only supported from Azure portal. Rest API and PowerShell is not supported.
126
125
- Az module 8.3.0 is installed by default and cannot be managed at the automation account level. Use custom modules to override the Az module to the desired version.
@@ -166,12 +165,7 @@ PowerShell Workflow runbooks are text runbooks based on [Windows PowerShell Work
166
165
167
166
Python runbooks compile under Python 2, Python 3.8 (preview) and Python 3.10 (preview). You can directly edit the code of the runbook using the text editor in the Azure portal. You can also use an offline text editor and [import the runbook](manage-runbooks.md) into Azure Automation.
168
167
169
-
* Python 3.10 (preview) runbooks are currently supported in five regions for cloud jobs only:
170
-
- West Central US
171
-
- East US
172
-
- South Africa North
173
-
- North Europe
174
-
- Australia Southeast
168
+
Currently, Python 3.10 (preview) runtime version is supported for both Cloud and Hybrid jobs in all Public regions except Australia Central2, Korea South, Sweden South, Jio India Central, Brazil SouthEast, Central India, West India, UAE Central, and Gov clouds.
175
169
176
170
### Advantages
177
171
@@ -212,8 +206,7 @@ Following are the limitations of Python runbooks
212
206
213
207
**Limitations**
214
208
215
-
- For Python 3.10 (preview) modules, currently, only the wheel files targeting cp310 Linux OS are supported. [Learn more](./python-3-packages.md)
216
-
- Currently, only cloud jobs are supported for Python 3.10 (preview) runtime versions.
209
+
- For Python 3.10 (preview) modules, currently, only the wheel files targeting cp310 Linux OS are supported. [Learn more](./python-3-packages.md).
217
210
- Custom packages for Python 3.10 (preview) are only validated during job runtime. Job is expected to fail if the package is not compatible in the runtime or if required dependencies of packages are not imported into automation account.
218
211
- Currently, Python 3.10 (preview) runbooks are only supported from Azure portal. Rest API and PowerShell is not supported.
219
212
@@ -229,10 +222,7 @@ When using only one version of Python, you can add the installation path to the
229
222
230
223
### Known issues
231
224
232
-
For cloud jobs, Python 3.8 jobs sometimes fail with an exception message `invalid interpreter executable path`. You might see this exception if the job is delayed, starting more than 10 minutes, or using **Start-AutomationRunbook** to start Python 3.8 runbooks. If the job is delayed, restarting the runbook should be sufficient. Hybrid jobs should work without any issue if using the following steps:
233
-
234
-
1. Create a new environment variable called `PYTHON_3_PATH` and specify the installation folder. For example, if the installation folder is `C:\Python3`, then this path needs to be added to the variable.
235
-
1. Restart the machine after setting the environment variable.
225
+
For cloud jobs, Python 3.8 jobs sometimes fail with an exception message `invalid interpreter executable path`. You might see this exception if the job is delayed, starting more than 10 minutes, or using **Start-AutomationRunbook** to start Python 3.8 runbooks. If the job is delayed, restarting the runbook should be sufficient.
@@ -81,8 +81,8 @@ Perform the following steps using a 64-bit Linux machine with Python 3.10.x and
81
81
1. On the **Add Python Package** page, select a local package to upload. The package can be a **.whl** or **.tar.gz** file for Python 3.8 (preview) and **.whl** file for Python 3.10 (preview).
82
82
1. Enter a name and select the **Runtime Version** as Python 3.8 (preview) or Python 3.10 (preview).
83
83
> [!NOTE]
84
-
> Python 3.10 (preview) runtime version is currently supported in five regions for Cloud jobs only: West Central US, East US, South Africa North, North Europe, Australia Southeast.
85
-
1. Select **Import**
84
+
> Currently, Python 3.10 (preview) runtime version is supported for both Cloud and Hybrid jobs in all Public regions except Australia Central2, Korea South, Sweden South, Jio India Central, Brazil Southeast, Central India, West India, UAE Central, and Gov clouds.
85
+
1. Select **Import**.
86
86
87
87
:::image type="content" source="media/python-3-packages/upload-package.png" alt-text="Screenshot shows the Add Python 3.8 (preview) Package page with an uploaded tar.gz file selected.":::
0 commit comments