'How to deploy automationAccounts/python2Packages by Azure resource manager?

Now i want to import Python packages by ARM template. Please help me enter image description here



Solution 1:[1]

You can reference this document to set up an ARM template to deploy your Azure Automation account.

After setting up the ARM template:

Solution 2:[2]

For automation download and add python package in Azure Automation Account:

Step 1: You have to create Azure Run As Account.

Step 2: Create Runbook and you can import a Python 3 package and its dependencies by importing the following Python script into a Python 3 runbook, and then running it

Step 3: Start runbook You have to add following argument for runbook:

subscription_id (-s) - Subscription id of the Automation account
resource_group (-g) - Resource group name of the Automation account
automation_account (-a) - Automation account name
module_name (-m) - Name of module to import from pypi.org

More information: Manage python2, Manage python3

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2