Skip to content

Commit 3f33e11

Browse files
authored
Update error-running-python-runbook.md
1 parent 9c27847 commit 3f33e11

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

support/azure/automation/runbooks/error-running-python-runbook.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Troubleshoot issues with python packages in Azure Automation
2+
title: Troubleshoot Issues with Python Packages in Azure Automation
33
description: Describes how to import, manage, and use Python packages in Azure Automation and provides a solution to an issue with python packages.
4-
ms.date: 06/20/2025
4+
ms.date: 06/25/2025
55
ms.reviewer: adoyle, v-weizhu
66
ms.service: azure-automation
77
ms.custom: sap:Runbook not working as expected
@@ -11,7 +11,7 @@ ms.custom: sap:Runbook not working as expected
1111
The article shows how to import, manage, and use Python packages in Azure Automation running on the Azure sandbox environment and Hybrid Runbook Workers. Python packages should be downloaded on Hybrid Runbook workers for successful job execution. To help simplify runbooks, you can use Python packages to import the modules you need.
1212

1313
> [!NOTE]
14-
> Azure Automation enables recovery of runbooks deleted in the last 29 days - Restore the deleted runbook by running a PowerShell script as a job in your Automation account. See [Restore deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook) for more information.
14+
> Azure Automation enables the recovery of runbooks deleted in the last 29 days. You can restore the deleted runbook by running a PowerShell script as a job in your Automation account. For more ingormation, see [Restore deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook).
1515
1616
## Import Python 2 packages
1717

@@ -27,7 +27,7 @@ After a package is imported, it's listed on the **Python packages** page in your
2727

2828
## Import packages with dependencies
2929

30-
Azure Automation doesn't resolve dependencies for Python packages during the import process. Use one of the following two methods to import a package with all its dependencies.
30+
Azure Automation doesn't resolve dependencies for Python packages during the import process. Use one of the following methods to import a package with all its dependencies.
3131

3232
### Method 1: Manually download
3333

@@ -39,7 +39,7 @@ C:\Python27\Scripts\pip2.7.exe download -d <output-directory> <package-name>
3939

4040
Once the packages and all its dependencies are downloaded, you can import them into your Automation account.
4141

42-
#### Method 2: Use a runbook
42+
### Method 2: Use a runbook
4343

4444
To get a runbook, [import Python 2 packages from pypi into Azure Automation account](https://github.com/azureautomation/import-python-2-packages-from-pypi-into-azure-automation-account).
4545

@@ -53,7 +53,7 @@ When you start the runbook, ensure the following things:
5353
- -a \<automationAccount\>
5454
- -m \<modulePackage\>
5555

56-
The runbook allows you to specify what package to download. For example, set the `-m` parameter to `Azure` to downloads all Azure modules and all dependencies (approximately 105 packages).
56+
The runbook allows you to specify which package to download. For example, set the `-m` parameter to `Azure` to download all Azure modules and all dependencies (approximately 105 packages).
5757
- The runbook requires a managed identity for the Automation account to work.
5858

5959
After the runbook execution is complete, you can check the **Python packages** under **Shared Resources** in your Automation account to verify that the package is imported correctly.
@@ -63,11 +63,11 @@ After the runbook execution is complete, you can check the **Python packages** u
6363
To support Python 3.8 runbooks in the Automation service, some Python packages are installed by default. For more information, see [Default Python packages](/azure/automation/default-python-packages). The default version can be overridden by importing Python packages into your Automation account. The imported version is preferred in your Automation account. To import a single package, see [Import a Python 3 package](#import-a-python-3-package). To import a package with multiple packages, see [Import a Python 3 package with dependencies](#import-a-python-3-package-with-dependencies).
6464

6565
> [!NOTE]
66-
> There are no default packages installed for Python 3.10 (preview).
66+
> Python 3.10 (preview) doesn't have default packages installed.
6767
6868
## Import a Python 3 package
6969

70-
1. In your Automation account, select **Python packages** under **Shared Resources**. Then select **+ Add a Python package**.
70+
1. In your Automation account, select **Python packages** under **Shared Resources**. Then, select **+ Add a Python package**.
7171

7272
2. 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 and a **.whl** file for Python 3.10 (preview).
7373

@@ -111,17 +111,17 @@ Your runbook that uses those parameters fails with the following error:
111111

112112
> Total Length of Runbook Parameter names and values exceeds the limit of 30,000 characters. To avoid this issue, use Automation Variables to pass values to runbook.
113113
114-
**Cause:**
114+
### Cause
115115

116116
Python 2.7, Python 3.8, and PowerShell 7.1 runbooks have a limit on the total length of characters for all parameters provided. The total length of all parameter names and values can't exceed 30,000 characters.
117117

118-
**Resolution:**
118+
### Resolution
119119

120120
To resolve this issue, use Azure Automation Variables to pass values to the runbook or shorten parameter names and values so they don't exceed 30,000 characters in total.
121121

122-
## Reference
122+
## References
123123

124124
- [Manage modules in Azure Automation](/azure/automation/shared-resources/modules)
125125
- [Runbook execution in Azure Automation](/azure/automation/automation-runbook-execution)
126126
- [Manage Python 2 packages in Azure Automation](/azure/automation/python-packages)
127-
- [Manage Python 3 packages in Azure Automation](/azure/automation/python-3-packages)
127+
- [Manage Python 3 packages in Azure Automation](/azure/automation/python-3-packages)

0 commit comments

Comments
 (0)