Open ctaggart opened 5 years ago
Thank you for reporting the issue. We already have PS cmdlets available for log alerts. Azure Monitor Alerts team is working on developing native Azure CLI command support for log alerts (scheduledQueryRules) and we'll revert back to you shortly, with details.
add to backlog.
Would be really go to have this and hoping that it would print the resource id of a log alert that I need to import into terraform state! Guess I'll have to do a manual REST API call ...
Azure Monitor Alerts team is working on developing native Azure CLI command support for log alerts (scheduledQueryRules) and we'll revert back to you shortly, with details.
I guess, the support in azure cli, is still work in-progress? https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-manage-alert-instances#manage-your-alerts-programmatically
Metric alerts can be managed with
az monitor metrics alert
:I want the same thing for log alerts.
Metric alerts has:
Create, view, and manage metric alerts using Azure Monitor https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-metric
Log alerts has:
Create, view, and manage log alerts using Azure Monitor https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-log