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
Copy file name to clipboardExpand all lines: articles/automation/automation-hrw-run-runbooks.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,20 @@ Azure Automation handles jobs on Hybrid Runbook Workers differently from jobs ru
33
33
34
34
Jobs for Hybrid Runbook Workers run under the local **System** account.
35
35
36
-
>[!NOTE]
36
+
>[!NOTE]
37
37
>- PowerShell 5.1, PowerShell 7.1(preview), Python 2.7, and Python 3.8(preview) runbooks are supported on both extension-based and agent-based Windows Hybrid Runbook Workers. For agent based workers, ensure the Windows Hybrid worker version is 7.3.12960 or above.
38
38
>- PowerShell 7.2 (preview) and Python 3.10 (preview) runbooks are supported on extension-based Windows Hybrid Workers only. Ensure the Windows Hybrid worker extension version is 1.1.11 or above.
> To create environment variable in Windows systems, follow these steps:
44
+
> 1. Go to **Control Panel** > **System** > **Advanced System Settings**.
45
+
> 1. In **System Properties** select **Environment variables**.
46
+
> 1. In **System variables**, select **New**.
47
+
> 1. Provide **Variable name** and **Variable value**, and then select **OK**.
48
+
> 1. Restart the VM or logout from the current user and login to implement the environment variable changes.
49
+
42
50
**PowerShell 7.2**
43
51
44
52
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).
@@ -71,6 +79,14 @@ If the *Python* executable file is at the default location *C:\Python27\python.e
> To create environment variable in Windows systems, follow these steps:
84
+
> 1. Go to **Control Panel** > **System** > **Advanced System Settings**.
85
+
> 1. In **System Properties** select **Environment variables**.
86
+
> 1. In **System variables**, select **New**.
87
+
> 1. Provide **Variable name** and **Variable value**, and then select **OK**.
88
+
> 1. Restart the VM or logout from the current user and login to implement the environment variable changes.
89
+
74
90
**PowerShell 7.1**
75
91
76
92
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).
@@ -90,23 +106,20 @@ To run Python 2.7 runbooks on a Windows Hybrid Worker, install Python on the Hyb
90
106
If the *Python* executable file is at the default location *C:\Python27\python.exe*, then you do not have to create the environment variable.
91
107
92
108
---
93
-
> [!NOTE]
94
-
> To create environment variable in Windows systems, follow these steps:
95
-
> 1. Go to **Control Panel** > **System** > **Advanced System Settings**.
96
-
> 1. In **System Properties** select **Environment variables**.
97
-
> 1. In **System variables**, select **New**.
98
-
> 1. Provide **Variable name** and **Variable value**, and then select **OK**.
99
-
> 1. Restart the VM or logout from the current user and login to implement the environment variable changes.
109
+
100
110
### Linux Hybrid Worker
101
111
102
-
>[!NOTE]
112
+
>[!NOTE]
103
113
>- PowerShell 5.1, PowerShell 7.1(preview), Python 2.7, Python 3.8 (preview) runbooks are supported on both extension-based and agent-based Linux Hybrid Runbook Workers. For agent-based workers, ensure the Linux Hybrid Runbook worker version is 1.7.5.0 or above.
104
114
>- PowerShell 7.2 (preview) and Python 3.10 (preview) runbooks are supported on extension-based Linux Hybrid Workers only. Ensure the Linux Hybrid worker extension version is 1.1.11 or above.
> 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.
118
+
> [!NOTE]
119
+
> To create environment variable in Linux systems, follow these steps:
120
+
> 1. Open /etc/environment.
121
+
> 1. 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).
122
+
> 1. Restart the VM or logout from current user and login after saving the changes to /etc/environment to implement environment variable changes.
0 commit comments