azureautomation / runbooks

Sample Automation runbooks
MIT License
156 stars 129 forks source link

import_py3package_from_pypi broken #97

Open tschechniker opened 1 year ago

tschechniker commented 1 year ago

Hi,

i just followed the azure documentation and used the import_py3package_from_pypi script. The script seems to be completly broken.

  1. The send_webservice_import_module_request functions is not called anywhere
  2. There is a token reference but the needed declaration is missing
timmermansjoy commented 1 year ago

+1

dme-development commented 1 year ago

@omairabdullah @sushil490023

SWATPeaceKeeper commented 1 year ago

+1

jimmylela commented 1 year ago

+1

bartvermeersch commented 1 year ago

+1

ThioJoe commented 1 year ago

The latest version seems to work for me. My problem was I didn't have the right permissions set on the automation account running the runbook. So if anyone is having issues check that. Be sure to set these permissions:

image

In my case I created a custom role and added those permissions, then assigned that role to the automation account I was using.

Also another thing, it seems that the version (-v) parameter is required and is not optional.