Skip to content

Commit d8f6ee9

Browse files
committed
Included Python Package related updates
1 parent 2b22814 commit d8f6ee9

File tree

8 files changed

+27
-17
lines changed

8 files changed

+27
-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: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ 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: 10/29/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 manage and use Python 3 packages (preview) in Azure Automation on Azure Sandbox environment and Linux Hybrid Runbook Workers. To help simplify runbooks, you can use Python packages to import the modules you need.
14+
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 into the Automation account.
15+
The 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).
16+
17+
For information on managing Python 2 packages, see [Manage Python 2 packages](./python-packages.md).
1418

1519
## Packages as source files
1620

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

3135
## Import a package
3236

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

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.":::
39+
:::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.":::
3640

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.
41+
1. On the **Add Python Package** page, select a local package to upload. The package can be a **.whl** or **.tar.gz** file.
42+
1. Enter a name and select the **Runtime Verion** as Python 3.8.x (preview)
43+
1. Select **Import**
3844

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.":::
45+
:::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.":::
4046

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**.
47+
Once 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**.
4248

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.":::
49+
:::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.":::
4450

4551
### Import a package with dependencies
4652

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 Azure Automation allows you to run Python 2 runbooks on Azure and Linux Hybrid Runbook Workers, manage and use Python packages in Azure Automation. 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+
Once 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+
Once 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)