Skip to content

Commit

Permalink
[Get-AzMetric.md]fix: don't worked example 4 (Azure#24653)
Browse files Browse the repository at this point in the history
* Update Get-AzMetric.md

fix: don't worked example 4

* Update Get-AzMetric.md
  • Loading branch information
sakkuntyo authored May 8, 2024
1 parent 6d0c570 commit 45cf803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monitor/Monitor/help/Get-AzMetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ This command gets detailed output for the Requests metric.

### Example 4: Get summarized output for a specified metric with specified dimension filter
```powershell
$dimFilter = @((New-AzMetricFilter -Dimension City -Operator eq -Value "Seattle","Toronto"), (New-AzMetricFilter -Dimension AuthenticationType -Operator eq -Value User))
$dimFilter = "$(New-AzMetricFilter -Dimension City -Operator eq -Value "Seattle","Toronto") and $(New-AzMetricFilter -Dimension AuthenticationType -Operator eq -Value User)"
Get-AzMetric -ResourceId <resourceId> -MetricName PageViews -TimeGrain 00:05:00 -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType Average
```
Expand Down

0 comments on commit 45cf803

Please sign in to comment.