How to deploy an Automation Account with Python Packages through Terraform?

Kenneth Huddleston 145 Reputation points
2023-03-08T16:53:14.6733333+00:00

I am deploying a Terraform managed Azure Automation resource. In that resource, I have Python Runbooks that require non-default Python Packages to run. I can provide these packages through the UI, but how do I implement them with Terraform? Looking at Microsofts Terraform provider docs, the only resource I found that looked relevant was:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_module

This resource specified automation "module" however, which usually refers to PowerShell runbooks. Is there a separate terraform resource for Python Packages? Is it the same?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,371 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.