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:
On your local machine, you can execute the related Azure CLI or Azure PowerShell commands to run the ARM template deployment.
In the Azure Pipelines on Azure DevOps, you can use the ARM Template Deployment Task to run the deployment.