Skip to content

Commit 0bcba37

Browse files
committed
New feedback incorporated- revised the order and classified the headings
1 parent 4d8be8b commit 0bcba37

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

articles/automation/automation-hrw-run-runbooks.md

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Run Azure Automation runbooks on a Hybrid Runbook Worker
33
description: This article describes how to run runbooks on machines in your local datacenter or other cloud provider with the Hybrid Runbook Worker.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 03/17/2023
6+
ms.date: 03/27/2023
77
ms.topic: conceptual
88
ms.custom: devx-track-azurepowershell
99
---
@@ -38,27 +38,34 @@ Jobs for Hybrid Runbook Workers run under the local **System** account.
3838
3939
#### [Extension-based Hybrid Workers](#tab/win-extn-hrw)
4040

41+
**PowerShell 7.2**
42+
43+
To run PowerShell 7.2 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
44+
45+
After PowerShell 7.2 installation is complete, create an environment variable with Variable name as powershell_7_2_path and Variable value as location of the executable *PowerShell*. Restart the Hybrid Runbook Worker after environment variable is created successfully.
46+
4147
**PowerShell 7.1**
4248

4349
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
4450
Ensure to add the *PowerShell* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
4551

46-
**Python 2.x, Python 3.x upto 3.8**
52+
**Python 3.10**
4753

48-
To run Python 2.x and Python 3.x runbooks on a Windows Hybrid Worker, install *Python* on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html).
49-
Ensure to add the *Python* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
54+
To run Python 3.10 runbooks on a Windows Hybrid Worker, install *Python* on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html)
5055

51-
**PowerShell 7.2**
56+
After Python 3.10 installation is complete, create an environment variable with Variable name as python_3_10_path and Variable value as location of the executable *Python*. Restart the Hybrid Runbook Worker after environment variable is created successfully.
5257

53-
To run PowerShell 7.2 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
58+
**Python 3.8**
5459

55-
After PowerShell 7.2 installation is complete, create an environment variable with Variable name as powershell_7_2_path and Variable value as location of the executable *PowerShell*. Restart the Hybrid Runbook Worker after environment variable is created successfully.
60+
To run Python 3.8 runbooks on a Windows Hybrid Worker, install Python on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html). Create **environment variable** *PYTHON_3_PATH* for Python 3.8 runbooks and ensure to add the location of executable Python as **Variable value**. Restart the Hybrid Runbook Worker after the environment variable is created successfully.
61+
If the *Python* executable file is at the default location *C:\WPy64-3800\python-3.8.0.amd64\python.exe*, then you do not have to create the environment variable.
5662

57-
**Python 3.10**
5863

59-
To run Python 3.10 runbooks on a Windows Hybrid Worker, install *Python* on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html)
64+
**Python 2.7**
65+
66+
To run Python 2.7 runbooks on a Windows Hybrid Worker, install Python on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html). Create **environment variable** *PYTHON_2_PATH* for Python 2.7 runbooks and ensure to add the location of executable Python file as **Variable value**. Restart the Hybrid Runbook Worker after the environment variable is created successfully.
67+
If the *Python* executable file is at the default location *C:\Python27\python.exe*, then you do not have to create the environment variable.
6068

61-
After Python 3.10 installation is complete, create an environment variable with Variable name as python_3_10_path and Variable value as location of the executable *Python*. Restart the Hybrid Runbook Worker after environment variable is created successfully.
6269

6370
#### [Agent-based Hybrid Workers](#tab/win-agt-hrw)
6471

@@ -67,10 +74,16 @@ After Python 3.10 installation is complete, create an environment variable with
6774
To run PowerShell 7.1 runbooks on a Windows Hybrid Worker, install *PowerShell* on the Hybrid Worker. See [Installing PowerShell on Windows](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3).
6875
Ensure to add the *PowerShell* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
6976

70-
**Python 2.x, Python 3.x upto 3.8**
77+
**Python 3.8**
78+
79+
To run Python 3.8 runbooks on a Windows Hybrid Worker, install Python on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html). Create **environment variable** *PYTHON_3_PATH* for Python 3.8 runbooks and ensure to add the location of executable Python as **Variable value**. Restart the Hybrid Runbook Worker after the environment variable is created successfully.
80+
If the *Python* executable file is at the default location *C:\WPy64-3800\python-3.8.0.amd64\python.exe*, then you do not have to create the environment variable.
81+
7182

72-
To run Python 2.x and Python 3.x runbooks on a Windows Hybrid Worker, install *Python* on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html).
73-
Ensure to add the *Python* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
83+
**Python 2.7**
84+
85+
To run Python 2.7 runbooks on a Windows Hybrid Worker, install Python on the Hybrid Worker. See [Installing Python on Windows](https://docs.python.org/3/using/windows.html). Create **environment variable** *PYTHON_2_PATH* for Python 2.7 runbooks and ensure to add the location of executable Python file as **Variable value**. Restart the Hybrid Runbook Worker after the environment variable is created successfully.
86+
If the *Python* executable file is at the default location *C:\Python27\python.exe*, then you do not have to create the environment variable.
7487

7588
---
7689

@@ -85,11 +98,6 @@ Ensure to add the *Python* file to the PATH environment variable and restart the
8598
>[!NOTE]
8699
> Create environment variable in Linux systems: </br> 1. Open /etc/environment. </br> 2. Create a new Environment variable by adding VARIABLE_NAME="variable_value" in a new line in /etc/environment (VARIABLE_NAME is the name of the new Environment variable and variable_value represents the value it is to be assigned). </br> 3. Either restart the VM or logout from current user and login again after saving the changes to /etc/environment to ensure environment variable changes take place.
87100
88-
**Python 2.x, Python 3.x upto 3.8**
89-
90-
To run Python 2.x and Python 3.x runbooks on a Linux Hybrid Worker, install *Python* on the Hybrid Worker.
91-
Ensure to add the *Python* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
92-
93101
**PowerShell 7.2**
94102

95103
To run PowerShell 7.2 runbooks on a Linux Hybrid Worker, install *PowerShell* file on the Hybrid Worker. For more information, see [Installing PowerShell on Linux](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.3).
@@ -102,6 +110,13 @@ To run Python 3.10 runbooks on a Linux Hybrid Worker, install *Python* on the Hy
102110

103111
After Python 3.10 installation is complete, create an environment variable with **Variable name** as *python_3_10_path* and **Variable value** as location of the executable *Python* file. Restart the Hybrid Runbook Worker after environment variable is created successfully.
104112

113+
**Python 3.8**
114+
To run Python 3.8 runbooks on a Linux Hybrid Worker, install *Python* on the Hybrid Worker. Ensure to add the executable *Python* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
115+
116+
**Python 2.7**
117+
118+
To run Python 2.7 runbooks on a Linux Hybrid Worker, install *Python* on the Hybrid Worker.
119+
Ensure to add the executable *Python* file to the PATH environment variable and restart the Hybrid Runbook Worker after the installation.
105120

106121
#### [Agent-based Hybrid Workers](#tab/Lin-agt-hrw)
107122

0 commit comments

Comments
 (0)