如何在 Azure 自动化 runbook 中使用 Service Fabric Powershell cmdlet

How to use Service Fabric Powershell cmdlets in an Azure Automation runbook

我想使用 Azure 自动化帐户连接到 Service Fabric 集群并运行 进行健康检查。我正在努力建立与集群的连接,因为服务结构 sdk 不存在。

有没有办法在 Azure 自动化 运行book 中使用 service fabric powershell cmdlet?

您可以将 AzureRM.ServiceFabric 0.2.4 模块导入 Azure 自动化帐户。打开 link https://www.powershellgallery.com/packages/AzureRM.ServiceFabric/0.2.4 并单击 Deploy to Azure Automation。然后,您可以使用一些 Service Fabric PowerShell cmdlet。

另一个解决方案是使用 Hybrid Runbook Worker

The Hybrid Runbook Worker feature of Azure Automation allows you to run runbooks directly on the computer hosting the role and against resources in the environment to manage those local resources.

您可以在本地安装fabric cluster SDK,使用Runbook worker来执行。