Share via

Python 3.8 Runbooks from source control aren't assigned correctly

Laurence Oldfield 1 Reputation point
2021-12-14T00:50:28.877+00:00

I'm syncing an Azure Devops git repo to Azure Automation, but for the moment I have to upload Python 3.8 scripts manually as syncing the source control automatically assigns Python scripts to Python 2.7, with no option to change. The files are all correctly headered.

Anyone found a way around this?

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,566 Reputation points Moderator
    2021-12-17T11:16:03.127+00:00

    Hi @Laurence Oldfield

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Python 3 runbooks are currently in preview and not supported for source control sync, as also mentioned in the output of sync job.
    However, a workaround would be to use the Import-AzAutomationRunbook as part of your devops pipeline, so that the committed runbooks are also imported properly to the automation account.

    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    Was this answer helpful?


Your answer

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