我在哪里可以找到 Azure.Service Powershell 模块?

Where do I find Azure.Service Powershell Module?

我正在尝试使用 Azure 自动化帐户中运行手册中的 PowerShell 工作流中的一些命令。命令之一也是 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

我是不是漏掉了什么琐碎的东西?要么我需要一种方法将该模块导入自动化帐户,要么需要能够下载为 zip 文件以便我可以上传它。

实际上 cmdlet Get-AzureWebsiteJobAzure module.

Azure module 页面 -> Package Details 部分,您可以找到包含的 cmdlet Get-AzureWebsiteJob。这是屏幕截图:

要在 Runbook 中使用它,您只需在自动化帐户中导入该模块,或者您可以直接将该模块从 Azure module 部署到 Azure 自动化,如下所示: