Skip to content

Commit 2eb478d

Browse files
VeryEarlyisra-felBethanyZhou
authored
[Monitor] Fix example for Update-AzScheduledQueryRule (#21047)
* fix docs for update-azscheduledqueryrule * update online version * fix docs for model cmdlets * fix docs * sync az.shared.props from main branch * fix link * Update Az.props --------- Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Beisi Zhou <[email protected]>
1 parent 3d1a3e7 commit 2eb478d

16 files changed

+16
-16
lines changed

src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertActionGroupObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.ActivityLogAlert/new-AzActivityLogAlertActionGroupObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertActionGroupObject
55
schema: 2.0.0
66
---
77

src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.ActivityLogAlert/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleAnyOfOrLeafConditionObject
55
schema: 2.0.0
66
---
77

src/Monitor/ActivityLogAlert.Autorest/docs/New-AzActivityLogAlertAlertRuleLeafConditionObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.ActivityLogAlert/new-AzActivityLogAlertAlertRuleLeafConditionObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzActivityLogAlertAlertRuleLeafConditionObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleNotificationObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.Autoscale/new-AzAutoscaleNotificationObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleNotificationObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleProfileObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.Autoscale/new-AzAutoscaleProfileObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleProfileObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleMetricDimensionObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.Autoscale/new-AzAutoscaleScaleRuleMetricDimensionObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleMetricDimensionObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleScaleRuleObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.Autoscale/new-AzAutoscaleScaleRuleObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleScaleRuleObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/New-AzAutoscaleWebhookNotificationObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.Autoscale/new-AzAutoscaleWebhookNotificationObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzAutoscaleWebhookNotificationObject
55
schema: 2.0.0
66
---
77

src/Monitor/Autoscale.Autorest/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.Autoscale`
88
- Packaged: yes
99

1010
## Details
11-
The process of documentation generation loads `Az.Autoscale` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
11+
The process of documentation generation loads `Az.Autoscale` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.

src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingLogSettingsObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.DiagnosticSetting/new-AzDiagnosticSettingLogSettingsObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzDiagnosticSettingLogSettingsObject
55
schema: 2.0.0
66
---
77

src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingMetricSettingsObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.DiagnosticSetting/new-AzDiagnosticSettingMetricSettingsObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzDiagnosticSettingMetricSettingsObject
55
schema: 2.0.0
66
---
77

src/Monitor/DiagnosticSetting.Autorest/docs/New-AzDiagnosticSettingSubscriptionLogSettingsObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.DiagnosticSetting/new-AzDiagnosticSettingSubscriptionLogSettingsObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzDiagnosticSettingSubscriptionLogSettingsObject
55
schema: 2.0.0
66
---
77

src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleConditionObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.ScheduledQueryRule/new-AzScheduledQueryRuleConditionObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzScheduledQueryRuleConditionObject
55
schema: 2.0.0
66
---
77

src/Monitor/ScheduledQueryRule.Autorest/docs/New-AzScheduledQueryRuleDimensionObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file:
33
Module Name: Az.Monitor
4-
online version: https://learn.microsoft.com/powershell/module/az.ScheduledQueryRule/new-AzScheduledQueryRuleDimensionObject
4+
online version: https://learn.microsoft.com/powershell/module/Az.Monitor/new-AzScheduledQueryRuleDimensionObject
55
schema: 2.0.0
66
---
77

src/Monitor/ScheduledQueryRule.Autorest/docs/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).Subscription.Id
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
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Example 1: Update scheduled query rule
22
```powershell
33
$subscriptionId=(Get-AzContext).Subscription.Id
4-
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
4+
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
55
```
66

77
Update scheduled query rule

0 commit comments

Comments
 (0)