Azure / azure-cli

Azure Command-Line Interface
MIT License
3.97k stars 2.95k forks source link

Get metric alerts. last updated field #16237

Open Mexicoder opened 3 years ago

Mexicoder commented 3 years ago

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.

yonzhan commented 3 years ago

monitor

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @SameergMS, @dadunl.

Issue Details
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**
Author: Mexicoder
Assignees: kairu-ms
Labels: `Monitor`, `Service Attention`
Milestone: S181
kairu-ms commented 3 years ago

Service doesn't response this property