[Python] How to use a Python zip package in Azure Runbook

Discussão em 'Python' iniciado por Stack, Agosto 29, 2025.

  1. Stack

    Stack Membro Participativo

    I have been using Powershell in my runbooks with success, but for reasons outside my control, I have to switch to Python. I have converted my code to Python, and it functions well locally (on Windows 11). The project covers several files, and I have therefore packages the files as a zip-file, which locally functions as a 'standalone' executable, when the zip-file is run by Python locally. The reason to be using Azure Runbooks is the ability to run the project on schedule (without relying on local machines to do the execution).

    Now to my question: how can I make a runbook in Azure, that uses this zip-package. I have created a Python 3.10 runbook, but I cannot find any way to upload the zip-file to the runbook. Is there any configuration, that I need to set right for it to work.

    I have followed many 'google/Copilot' advices, byt none have worked. Several mentions 'Shared Resources', and there 'Edit > Upload a Python package (.zip)', but that's not visible on my Azure Runbook page.

    Continue reading...

Compartilhe esta Página