gpt4 book ai didi

azure - 删除/删除 Azure 警报规则

转载 作者:行者123 更新时间:2023-12-03 00:57:17 28 4
gpt4 key购买 nike

Azure 警报规则的删除命令似乎不起作用,尝试了下面的方法,它返回状态为无内容,并且警报未被删除

使用的命令Remove-AzAlertRule -ResourceGroup "RGName"-Name "AlertRuleName"

enter image description here

是否有任何 powershell 命令可用于删除 azure 中所有类型的警报规则?

最佳答案

Remove-AzAlertRule 命令只是删除经典警报规则,其资源类型为 microsoft.insights/alertrules

enter image description here

您需要使用此命令 Remove-AzMetricAlertRuleV2(提供的说明 here )来删除非经典指标警报规则 microsoft.insights/metricAlerts(这是通过门户创建的)。

enter image description here

希望这有帮助!

关于azure - 删除/删除 Azure 警报规则,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61094037/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com