我们可以使用 powershell 实施 azure auto heal 自定义操作吗?如果可能的话,实施它的最佳实践是什么?
Can we implement azure auto heal custom action using powershell, also if that is possible what should best practice to implement it?
我正在尝试为网络应用程序实施 azure 自动修复。在操作部分,我想实现自定义操作。自定义操作将触发一个 powershell 脚本,该脚本将重新启动我们的 redis 缓存和应用程序服务。
实现这个的最佳做法是什么?我可以将 powershell 存储在 blob 中,还是有任何其他方式我们可以重新启动服务?
我正在尝试通过 ARM 模板实现它
您会将 Azure Automation 纳入您的帐户吗?你可以 create a PowerShell runbook in it and you can expose a webhook to trigger it to restart your services . Besides creating webhooks for your runbook, there will be some other ways to trigger it .
如果您还有任何疑问,请告诉我。
我正在尝试为网络应用程序实施 azure 自动修复。在操作部分,我想实现自定义操作。自定义操作将触发一个 powershell 脚本,该脚本将重新启动我们的 redis 缓存和应用程序服务。
实现这个的最佳做法是什么?我可以将 powershell 存储在 blob 中,还是有任何其他方式我们可以重新启动服务?
我正在尝试通过 ARM 模板实现它
您会将 Azure Automation 纳入您的帐户吗?你可以 create a PowerShell runbook in it and you can expose a webhook to trigger it to restart your services . Besides creating webhooks for your runbook, there will be some other ways to trigger it .
如果您还有任何疑问,请告诉我。