Closed vexingpos closed 2 years ago
Incorrect code is from below. Besides this cmdlet, we need to check which cmdlet is using this super method and we need to use correct approach. https://github.com/Azure/azure-powershell/blob/2834e8d3ba198ad6e1582befc9a8eb9c6c61a0ff/src/Monitor/Monitor/Metrics/GetAzureRmMetricCommand.cs#L130
We need to try to search all warning message in Monitor module and avoid the same issue in other cmdlets.
Description
When using
Get-AzMetric
, every invocation of the cmdlet carries the following warning message:This is despite the fact that my script contains the following:
Issue script & Debug output
Environment data
Module versions
Error output