通过powershell触发azure操作组

发布于 2025-01-15 23:19:48 字数 117 浏览 4 评论 0 原文

我可以使用 Get-AzActionGroup 命令检索我的操作组。但我想通过我的 Runbook 使用 powershell 命令激活/触发/触发该操作组。这有可能吗?如果是这样,我该怎么做?

I can retrieve my action group with the Get-AzActionGroup command. But I would like to activate/fire/trigger that action group via my runbook with a powershell command. Is this possible at all? And if so, how can I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

﹏半生如梦愿梦如真 2025-01-22 23:19:50

命令 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.

孤独陪着我 2025-01-22 23:19:50
  • 您可以使用 PowerShell 使用此命令 Set-AzActionGroup 创建操作组
    以下是 Microsoft 文档有关管理操作组的信息。
  • 此外,这里还有一些其他链接,可以为您提供有关使用 PowerShell 的操作组的信息。
  1. https://sweetcode.io/powershell-create-azure-monitor-action -组/
  2. https://wmatthyssen.com /2022/01/12/创建-azure-monitor-action-group-with-azure-powershell/
  • You can create the action group using PowerShell with this command Set-AzActionGroup
    and here are the Microsoft documents that have the information about managing the action group.
  • Also, here are a few other links that can give you info about action groups using PowerShell.
  1. https://sweetcode.io/powershell-create-azure-monitor-action-group/
  2. https://wmatthyssen.com/2022/01/12/create-an-azure-monitor-action-group-with-azure-powershell/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文