Dear Team,
We have a function (named download_file()) which is in a python3 runbook named get_secret.py. We need to use it in an another python3 runbook called register.py.
All these runbooks are created under one of the automation accounts in Azure.
We would like to know how to call/invoke/import the function/script (get_secret.py) from register.py
Tried as per the usual method given below, but it didn't work.
In register.py
! /usr/bin/env python3
import get_secret
get_secret.download_file()
Also, imported the get_secret.py script into "Python packages" under Shared Resources in Automation Account, that too also not worked out.
The below links provide useful information for powershell but couldn't find any details for python anywhere.
https://docs.microsoft.com/en-us/azure/automation/automation-child-runbooks
Any suggestions/solutions would be very helpful.
Regards,
Guru Mohan G