Home > OS >  How to deploy automationAccounts/python2Packages by Azure resource manager?
How to deploy automationAccounts/python2Packages by Azure resource manager?

Time:03-16

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

CodePudding user response:

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

CodePudding user response:

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

After setting up the ARM template:

  • Related