Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.18k stars 3.79k forks source link

[Doc] Get-AzMetric - Docs samples don't match actual cmdlet #25469

Closed Alex-wdy closed 1 month ago

Alex-wdy commented 1 month ago

Description

To update current versions of the Get-AzMetric reference doc, raise a PR in the azure-docs-powershell repo:

https://github.com/MicrosoftDocs/azure-docs-powershell/blob/main/azps-12.0.0/Az.Monitor/Get-AzMetric.md https://github.com/MicrosoftDocs/azure-docs-powershell/blob/main/azps-11.6.0/Az.Monitor/Get-AzMetric.md

Actual output: image

According to the docs (https://learn.microsoft.com/en-us/powershell/module/az.monitor/get-azmetric): ![Uploading image.png…]()

Issue script & Debug output

N/A

Environment data

PS C:\Users\wangalex> $PSversiontable

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

PS C:\Users\wangalex> Get-Module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     3.0.0                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzConte…

Error output

N/A
isra-fel commented 1 month ago

We need to refresh the examples of this cmdlet

JoyerJin commented 1 month ago

Microsoft Docs of Az 11.6.0, 12.0.0 and 12.1.0 are fixed.