Skip to content

Commit d1d1a9b

Browse files
committed
PS commands
1 parent 8407fbc commit d1d1a9b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

articles/azure-monitor/alerts/alerts-create-new-alert-rule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ You can create a new alert rule using the [Azure CLI](/cli/azure/get-started-wit
303303
## Create a new alert rule using PowerShell
304304
305305
- To create a metric alert rule using PowerShell, use this cmdlet: [Add-AzMetricAlertRuleV2](/powershell/module/az.monitor/add-azmetricalertrulev2)
306-
- To create a log alert rule using PowerShell, use this cmdlet: [New-AzScheduledQueryRule](/powershell/module/az.monitor/new-azscheduledqueryrule?view=azps-9.0.1)
306+
- To create a log alert rule using PowerShell, use this cmdlet: [New-AzScheduledQueryRule](/powershell/module/az.monitor/new-azscheduledqueryrule?)
307307
- To create an activity log alert rule using PowerShell, use this cmdlet: [Set-AzActivityLogAlert](/powershell/module/az.monitor/set-azactivitylogalert)
308308
309309
## Create an activity log alert rule from the Activity log pane

articles/azure-monitor/alerts/alerts-manage-alert-rules.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ This section describes how to manage metric alert rules using the cross-platform
5555
1. Use these options of the `az monitor metrics alert` CLI command in this table:
5656

5757

58-
|Description |CLI command |
58+
|What you want to do|CLI command |
5959
|---------|---------|
60-
|View all the metric alerts in a resource group|```azurecli<br>az monitor metrics alert list -g {ResourceGroup}<br>```|
61-
|See the details of a particular metric alert rule|```azurecli<br>az monitor metrics alert show -g {ResourceGroup} -n {AlertRuleName}<br>``` |
62-
| |```azurecli<br>az monitor metrics alert show --ids {RuleResourceId}<br>`` |
63-
|Disable a metric alert rule|```azurecli<br>az monitor metrics alert update -g {ResourceGroup} -n {AlertRuleName} --enabled false<br>```|
64-
|Delete a metric alert rule|```azurecli<br>az monitor metrics alert update -g {ResourceGroup} -n {AlertRuleName} --enabled false<br>```|
65-
|Learn more about the command|```azurecli<br>az monitor metrics alert --help<br>``|
60+
|View all the metric alerts in a resource group|`az monitor metrics alert list -g {ResourceGroup}`|
61+
|See the details of a particular metric alert rule|`az monitor metrics alert show -g {ResourceGroup} -n {AlertRuleName}`|
62+
| |`az monitor metrics alert show --ids {RuleResourceId}`|
63+
|Disable a metric alert rule|`az monitor metrics alert update -g {ResourceGroup} -n {AlertRuleName} --enabled false`|
64+
|Delete a metric alert rule|`az monitor metrics alert update -g {ResourceGroup} -n {AlertRuleName} --enabled false<br>`|
65+
|Learn more about the command|`az monitor metrics alert --help`|
6666

6767
## Manage metric alert rules with PowerShell
6868

0 commit comments

Comments
 (0)