如何通过PowerShell从Azure Monitor获取警报 [英] How to get Alerts from Azure Monitor through PowerShell

查看:67
本文介绍了如何通过PowerShell从Azure Monitor获取警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Azure Monitor,我已经设置了一些监视功能,并且希望从PowerShell中获取警报,但是我找不到相对的cmdlet.我尝试使用Get-AzureRmAlertRule,但它仅提供规则详细信息而不是警报.我在找东西 就像SCOM中的GET-SCOmAlert.以下是我希望通过PowerShell获取的Azure监视器中存在的警报的屏幕快照

With Azure Monitor I have setup some monitoring and would like to get alerts from PowerShell but I am unable to find relavant cmdlets.  I tried to use Get-AzureRmAlertRule but it gives only Rule details rather alerts. I am looking for something like GET-SCOmAlert in SCOM. Below is a screenshot of alerts present in Azure monitor which I am looking to get via PowerShell

谢谢,萨默尔

推荐答案

https://docs.microsoft.com/zh-cn/azure/monitoring-and-diagnostics/insights-powershell-samples?toc=/azure/azure-monitor/toc. json 用于PowerShell中Azure监视支持的方案.目前,您可能会留下宝贵的财富 这里的反馈- https://feedback.azure.com/forums/602299-azure-alert-management/suggestions/33567772-to-enable-disable-alert-rule-add-new-powershell -cm 并对该请求进行投票.

Currently there is no cmdlet that gives you alert details. See the reference link - https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-powershell-samples?toc=/azure/azure-monitor/toc.json for Azure Monitoring supported scenarios in PowerShell. For now, you may leave your valuable feedback here - https://feedback.azure.com/forums/602299-azure-alert-management/suggestions/33567772-to-enable-disable-alert-rule-add-new-powershell-cm and up vote the request.


这篇关于如何通过PowerShell从Azure Monitor获取警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆