Azure / Azure/azure-cli

Get metric alerts. last updated field

Open
#16,237 3 comments 0 reactions 1 assignee Claimed by @kairu-ms View on GitHub
act-observability-squad Monitor Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I have been using the `az monitor metrics alert list ` to get all of my metric alerts.
I am noticing that `LastUpdatedTime` is always null. I get the same result when I use the Azure Powershell equivalent `Get-AzMetricAlertRuleV2`
Is this expected functionality? when I retrieve log alerts with Azure Powershell `Get-AzScheduledQueryRule` this field is populated.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: d97968df-72c9-e50c-d5b1-54562c1bdef7
* Version Independent ID: 0cde4f15-6464-3106-b787-3ee37c7de0ee
* Content: [az monitor metrics alert](https://docs.microsoft.com/en-us/cli/azure/monitor/metrics/alert?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/monitor/metrics/alert.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/monitor/metrics/alert.yml)
* Service: **monitoring-and-diagnostics**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.