get alert rule status from cli

LaVar Blalock 95 Reputation points
2023-05-12T21:14:34.55+00:00

Is there a way to grab the Status from the Azure Monitor CLI?

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,080 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 1,385 Reputation points Microsoft Employee
    2023-05-13T10:36:35.2+00:00

    There will always be some pieces of data that aren't exposed through a CLI. For these, it's good to be aware of az rest in the main cli. It'll facilitate API calls (like from your screenshot) and automatically take care of the authentication headers for you (after you az login).

    However, for your specific question i think the az montior metrics alert show cli command will work.


0 additional answers

Sort by: Most helpful