Skip to content

Commit 2523c7c

Browse files
authored
Merge pull request #178028 from SGSneha/28Oct-UpdatePhythonSupport
[Post-Keynote Publish] Included Python Package related updates
2 parents 462b357 + f1434b5 commit 2523c7c

File tree

8 files changed

+28
-17
lines changed

8 files changed

+28
-17
lines changed
-11.4 KB
Loading
8 KB
Loading
16.7 KB
Loading
71.8 KB
Loading
62 KB
Loading
33.2 KB
Loading

articles/automation/python-3-packages.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ title: Manage Python 3 packages in Azure Automation
33
description: This article tells how to manage Python 3 packages (preview) in Azure Automation.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 08/25/2021
6+
ms.date: 11/01/2021
77
ms.topic: conceptual
88
ms.custom: has-adal-ref
99
---
1010

1111
# Manage Python 3 packages (preview) in Azure Automation
1212

13-
Azure Automation allows you to run Python 3 runbooks (preview) on Azure Sandbox environment and on Linux Hybrid Runbook Workers. To help in simplification of runbooks, you can use Python packages to import the modules that you need. Azure package 4.0.0 is installed by default in Python 3 Automation environment. The default version can be overridden by importing the Python packages in the Automation account. Preference is given to the imported version in the Automation account. To import a single package, see [Import a package](#import-a-package). To import a package with multiple packages, see [Import a package with dependencies](#import-a-package-with-dependencies). This article describes how to manage and use Python 3 packages (preview) in Azure Automation.
13+
This article describes how to import, manage, and use Python 3 (preview) packages in Azure Automation running on the Azure sandbox environment and Hybrid Runbook Workers.To help simplify runbooks, you can use Python packages to import the modules you need.
14+
15+
To support Python 3 runbooks in the Automation service, Azure package 4.0.0 is installed by default in the Automation account. The default version can be overridden by importing Python packages into your Automation account.
16+
Preference is given to the imported version in your Automation account. To import a single package, see [Import a package](#import-a-package). To import a package with multiple packages, see [Import a package with dependencies](#import-a-package-with-dependencies).
17+
18+
For information on managing Python 2 packages, see [Manage Python 2 packages](./python-packages.md).
1419

1520
## Packages as source files
1621

@@ -30,17 +35,19 @@ Some Python packages available on PyPI don't provide a wheel file. In this case,
3035

3136
## Import a package
3237

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

35-
:::image type="content" source="media/python-3-packages/add-python-3-package.png" alt-text="Screenshot of the Python 3 packages page shows Python 3 packages in the left menu and Add a Python 2 package highlighted.":::
40+
:::image type="content" source="media/python-3-packages/add-python-3-package.png" alt-text="Screenshot of the Python packages page shows Python packages in the left menu and Add a Python package highlighted.":::
3641

37-
On the **Add Python Package** page, select **Python 3** for the **Version**, and select a local package to upload. The package can be a **.whl** or **.tar.gz** file. When the package is selected, select **OK** to upload it.
42+
1. On the **Add Python Package** page, select a local package to upload. The package can be a **.whl** or **.tar.gz** file.
43+
1. Enter a name and select the **Runtime Version** as Python 3.8.x (preview)
44+
1. Select **Import**
3845

39-
:::image type="content" source="media/python-3-packages/upload-package.png" alt-text="Screenshot shows the Add Python 3 Package page with an uploaded tar.gz file selected.":::
46+
:::image type="content" source="media/python-3-packages/upload-package.png" alt-text="Screenshot shows the Add Python 3.8.x Package page with an uploaded tar.gz file selected.":::
4047

41-
Once a package has been imported, it's listed on the Python packages page in your Automation account, under the **Python 3 packages (preview)** tab. If you need to remove a package, select the package and select **Delete**.
48+
After a package has been imported, it's listed on the Python packages page in your Automation account. To remove a package, select the package and click **Delete**.
4249

43-
:::image type="content" source="media/python-3-packages/python-3-packages-list.png" alt-text="Screenshot shows the Python 3 packages page after a package has been imported.":::
50+
:::image type="content" source="media/python-3-packages/python-3-packages-list.png" alt-text="Screenshot shows the Python 3.8.x packages page after a package has been imported.":::
4451

4552
### Import a package with dependencies
4653

articles/automation/python-packages.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,32 @@ title: Manage Python 2 packages in Azure Automation
33
description: This article tells how to manage Python 2 packages in Azure Automation.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 08/13/2021
6+
ms.date: 10/29/2021
77
ms.topic: conceptual
88
ms.custom: devx-track-python
99
---
1010

1111
# Manage Python 2 packages in Azure Automation
1212

13-
Azure Automation allows you to run Python 2 runbooks on Azure and on Linux Hybrid Runbook Workers. To help in simplification of runbooks, you can use Python packages to import the modules that you need. This article describes how to manage and use Python packages in Azure Automation.
13+
This article describes how to import, manage, and use Python 2 packages in Azure Automation running on the Azure sandbox environment and Hybrid Runbook Workers. To help simplify runbooks, you can use Python packages to import the modules you need.
14+
15+
For information on managing Python 3 packages, see [Manage Python 3 packages](./python-3-packages.md).
1416

1517
## Import packages
1618

17-
In your Automation account, select **Python 2 packages** under **Shared Resources**. Click **+ Add a Python 2 package**.
19+
1. In your Automation account, select **Python packages** under **Shared Resources**. Click **+ Add a Python package**.
1820

19-
:::image type="content" source="media/python-packages/add-python-package.png" alt-text="Screenshot of the Python 2 packages page shows Python 2 packages in the left menu and Add a Python 2 package highlighted.":::
21+
:::image type="content" source="media/python-packages/add-python-package.png" alt-text="Screenshot of the Python packages page shows Python packages in the left menu and Add a Python package highlighted.":::
2022

21-
On the Add Python 2 Package page, select a local package to upload. The package can be a **.whl** or **.tar.gz** file. When the package is selected, click **OK** to upload it.
23+
2. On the **Add Python Package** page, select a local package to upload. The package can be a **.whl** or **.tar.gz** file.
24+
3. Enter the name and select the **Runtime version** as 2.x.x
25+
4. Select **Import**.
2226

23-
:::image type="content" source="media/python-packages/upload-package.png" alt-text="Screenshot shows the Add Python 2 Package page with an uploaded tar.gz file selected.":::
27+
:::image type="content" source="media/python-packages/upload-package.png" alt-text="Screenshot shows the Add Python Package page with an uploaded tar.gz file selected.":::
2428

25-
Once a package has been imported, it's listed on the Python 2 packages page in your Automation account. If you need to remove a package, select the package and click **Delete**.
29+
After a package has been imported, it's listed on the **Python packages** page in your Automation account. To remove a package, select the package and click **Delete**.
2630

27-
:::image type="content" source="media/python-packages/package-list.png" alt-text="Screenshot shows the Python 2 packages page after a package has been imported.":::
31+
:::image type="content" source="media/python-packages/package-list.png" alt-text="Screenshot shows the Python 2.7.x packages page after a package has been imported.":::
2832

2933
## Import packages with dependencies
3034

@@ -53,7 +57,7 @@ Once the packages are downloaded, you can import them into your automation accou
5357

5458
The runbook allows you to specify what package to download. For example, use of the `Azure` parameter downloads all Azure modules and all dependencies (about 105).
5559

56-
Once the runbook is complete, you can check the **Python 2 packages** under **Shared Resources** in your Automation account to verify that the package has been imported correctly.
60+
After the runbook is complete, you can check the **Python packages** under **Shared Resources** in your Automation account to verify that the package has been imported correctly.
5761

5862
## Use a package in a runbook
5963

0 commit comments

Comments
 (0)