Azure alert configuration using powershell

Dinesh N 1 Reputation point
2022-03-24T22:40:18.197+00:00

I'm trying to configure azure alerts based on a custom log search using PowerShell. However, I'm not able to do that can someone help me with that.

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,867 questions
{count} votes

1 answer

Sort by: Most helpful
  1. robert 1 Reputation point
    2022-03-25T16:46:45.317+00:00

    Looks like you're trying to create a log alert rule. That button "New alert rule" in your image will get you to the pane to configure the alert.

    Here's a possible guide to help you: https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/tutorial-log-alert

    The query language is Kusto Query Language (KQL), if you're looking to do something with PowerShell it wouldn't be in this query it would be a management-based activity.