Azure Automation runbook with custom Python classes in multiple files

Antti-Jussi Korjonen 0 Reputation points
2024-09-03T07:24:18.7166667+00:00

I am developing multiple Python classes (in separate files) to be used in a runbook.
Azure DevOps (git) is used as version control with runbooks automatically syncing to Azure Automation.

I know there is a way to include the classes as modules in the environment but I don't want to do that.
Not yet, because I'm still developing those classes.

I could also pull the class files from DevOps separately but I do not want to that either.

Is there any way to include all the files the runbook needs in the runbook run?
My workaround currently is to concatenate all the files in one file, which works but is a bit nasty way of doing this.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,241 questions
0 comments No comments
{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.