How to use Service Fabric Powershell cmdlets in an

2019-06-14 10:22发布

I want to use an azure automation account to connect to a service fabric cluster and run a health check. I'm struggling with establishing a connection to the cluster because the service fabric sdk is not present.

Is there a way to use the service fabric powershell cmdlets in an azure automation runbook?

1条回答
Emotional °昔
2楼-- · 2019-06-14 10:35

You could import AzureRM.ServiceFabric 0.2.4 module to Azure automation account. Open the link https://www.powershellgallery.com/packages/AzureRM.ServiceFabric/0.2.4 and click Deploy to Azure Automation. Then, you could use some Service Fabric PowerShell cmdlets.

Another solution is using 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.

You could install fabric cluster SDK on your local, and use Runbook worker to execute it.

查看更多
登录 后发表回答