Skip to content

Commit 2b4198e

Browse files
authored
The example was using the wrong command (#20237)
1 parent 537fc6a commit 2b4198e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Monitor/Monitor/help/Update-AzScheduledQueryRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Update a scheduled query rule.
4242
### Example 1: Update scheduled query rule
4343
```powershell
4444
$subscriptionId=(Get-AzContext).SubscriptionId
45-
New-AzScheduledQueryRule -Name test-rule -ResourceGroupName test-group -Scope "/subscriptions/$subscriptionId/resourceGroups/test-group/providers/Microsoft.Compute/virtualMachines/test-vm" -ActionGroupResourceId "/subscriptions/$subscriptionId/resourceGroups/test-group/providers/microsoft.insights/actionGroups/test-action-group" -AutoMitigate:$false
45+
Update-AzScheduledQueryRule -Name test-rule -ResourceGroupName test-group -Scope "/subscriptions/$subscriptionId/resourceGroups/test-group/providers/Microsoft.Compute/virtualMachines/test-vm" -ActionGroupResourceId "/subscriptions/$subscriptionId/resourceGroups/test-group/providers/microsoft.insights/actionGroups/test-action-group" -AutoMitigate:$false
4646
```
4747

4848
Update scheduled query rule

0 commit comments

Comments
 (0)