@Kenneth Huddleston , thank you for the question. This feature of pulling PS module from private GH repo is not available as of now. However, there are workarounds that can be used to achieve this goal, like
- Upload it manually (as mentioned in the question)
- Download the file on your local machine and use New-AzAutomationModule cmdlet to upload it to the automation account.
- A slightly modified version is to use option 2 (New-AzAutomationModule) with the solution as provided by Rich in the answer above. This would require creating a runbook --> using the script in discussion to download the module locally with authentication --> using New-AzAutomationModule cmdlet to upload the module to the Azure Automation Account.
I also found a feedback item which was shared sometime back - Allow Custom Module sync / link from AzureDevOps Artifacts (or other external repository) I have reached out to the team requesting for an update about it and will update this thread with additional information. Hope this helps. If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.