Azure Automation runbook with multiple Python classes in separate files

Antti-Jussi Korjonen 0 Reputation points
2024-09-03T07:27:43.4566667+00:00

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

I know there is a way to include the 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 I don't like it either.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,257 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.