I am trying to use some commands from PowerShell workflow from runbooks in Azure automation account. One of the command is Get-AzureWebsiteJob which uses Azure.Service PowerShell module. This module is not present in the PowerShell module gallery of the automation account. I didn't find it in PowerShell Gallery as well.
Am I missing anything trivial here? Either I need a way to import that module in automation account or need to be able to download as a zip so that I can upload it.
Actually the cmdlet Get-AzureWebsiteJob
is in Azure module.
In the Azure module page -> Package Details
section, you can find the cmdlet Get-AzureWebsiteJob
is included. Here is the screenshot:
To use it in runbook, you just need import that module in automation account, or you can directly deploy that module to azure automation from Azure module like below: