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
description: This article tells how to manage Python 3 packages (preview) in Azure Automation.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 08/25/2021
6
+
ms.date: 11/01/2021
7
7
ms.topic: conceptual
8
8
ms.custom: has-adal-ref
9
9
---
10
10
11
11
# Manage Python 3 packages (preview) in Azure Automation
12
12
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).
14
19
15
20
## Packages as source files
16
21
@@ -30,17 +35,19 @@ Some Python packages available on PyPI don't provide a wheel file. In this case,
30
35
31
36
## Import a package
32
37
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**.
34
39
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.":::
36
41
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**
38
45
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.":::
40
47
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**.
42
49
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.":::
description: This article tells how to manage Python 2 packages in Azure Automation.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 08/13/2021
6
+
ms.date: 10/29/2021
7
7
ms.topic: conceptual
8
8
ms.custom: devx-track-python
9
9
---
10
10
11
11
# Manage Python 2 packages in Azure Automation
12
12
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).
14
16
15
17
## Import packages
16
18
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**.
18
20
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.":::
20
22
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**.
22
26
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.":::
24
28
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**.
26
30
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.":::
28
32
29
33
## Import packages with dependencies
30
34
@@ -53,7 +57,7 @@ Once the packages are downloaded, you can import them into your automation accou
53
57
54
58
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).
55
59
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.
0 commit comments