通过powershell触发azure操作组
我可以使用 Get-AzActionGroup
命令检索我的操作组。但我想通过我的 Runbook 使用 powershell 命令激活/触发/触发该操作组。这有可能吗?如果是这样,我该怎么做?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我可以使用 Get-AzActionGroup
命令检索我的操作组。但我想通过我的 Runbook 使用 powershell 命令激活/触发/触发该操作组。这有可能吗?如果是这样,我该怎么做?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
命令
Test-AzActionGroup
触发操作组,请参阅 https://learn.microsoft.com/en-us/powershell/module/az.monitor/test-azactiongroup。但是,根据我的理解,如果您这样做,通知数量还有其他限制: https://learn.microsoft.com/en-us/azure/azure-monitor/service-limits。因此,您可以通过这种方式发送更多语音呼叫,但根据具体情况,可能会发送更少的电子邮件。
顾名思义,这是 用于测试和自诊断,并非真正的生产用途。
The command
Test-AzActionGroup
fires the Action Group, see https://learn.microsoft.com/en-us/powershell/module/az.monitor/test-azactiongroup.However, from my understanding, there are other limits on the number of notifications if you do it this way: https://learn.microsoft.com/en-us/azure/azure-monitor/service-limits. So, you can send more voice calls this way, but depending on the scenario possibly less emails.
As the name suggests, this is intended for tests and self-diagnosis, not really production use.
Set-AzActionGroup
创建操作组以下是 Microsoft 文档有关管理操作组的信息。
Set-AzActionGroup
and here are the Microsoft documents that have the information about managing the action group.