From d21a57c77176b1ea03ab121a46e67ceb98bae46f Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Fri, 1 Apr 2022 10:59:45 +0800 Subject: [PATCH 1/3] Fix Az.Monitor Syntax Errors --- ...\253\346\215\267\346\226\271\345\274\217.lnk" | Bin 0 -> 1194 bytes .../Monitor/help/Add-AzWebtestAlertRule.md | 2 +- .../Monitor/help/Disable-AzActivityLogAlert.md | 2 +- .../Monitor/help/Enable-AzActivityLogAlert.md | 2 +- src/Monitor/Monitor/help/Get-AzActionGroup.md | 4 ++-- .../Monitor/help/Get-AzAutoscaleHistory.md | 2 +- .../Monitor/help/Get-AzDataCollectionRule.md | 4 ++-- .../help/Get-AzDataCollectionRuleAssociation.md | 2 +- src/Monitor/Monitor/help/Get-AzMetric.md | 2 +- src/Monitor/Monitor/help/New-AzAlertRuleEmail.md | 4 ++-- .../help/New-AzMetricAlertRuleV2Criteria.md | 2 +- src/Monitor/Monitor/help/Remove-AzActionGroup.md | 2 +- .../Monitor/help/Remove-AzActivityLogAlert.md | 4 ++-- .../Remove-AzDataCollectionRuleAssociation.md | 2 +- src/Monitor/Monitor/help/Set-AzActionGroup.md | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 "src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" diff --git "a/src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" "b/src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" new file mode 100644 index 0000000000000000000000000000000000000000..8049205a5ce0e7aa2fcd21270044fc8b553d30ad GIT binary patch literal 1194 zcmb_bUr1A76#q?)W|oqJ3U(npNGtHl+BWH2Q9J5w?S>B&3zkS!U8d=eafa zXVo}tF!ZJ3NMW8BmCCLcSxU4;I9RPgxuw!%t!Sr^fOy1Vak54DWNR1XD|*V3w{vQu zlD{^|IWijILl6!~@WVycOOFn9aHE<00IDfH1)i{0n;>a5I9+wlYSOWmHKG-3Zx>3u ztTk=ojfGmWrlmji5_Yr_qeLpYf9kSQNkplMl>AZ+jz=^u+dG7k9M%{pVvXnq9&>I| z`H8=V-tEBo2$PGL%6tv(W}gIOn5|84X*+~73ftW|W{M@OA5ANjD5LH)D829zFOW>A zCF~*aH*7rRHGhZl)5d%-G6~BkD$Au))(~avX441dAuGh%LV$*;`!2vo^M+xd#&@%$F^I! z55Fed`Tl!!+<4;GM(;n;hT?(#F5=FrD6d#BOnfN7jpE^-Gl>I!=K(jxdGAOgXbGWK zry~=E$fI&MzDnYTSKtr}(6~zAA`D9zV~fSRHG@krHu>I{k^L0kLQslOlZ`$hJ^|&j z8)<>g73GghrDYuZTskkVJC@JpUIaLM8-cC`u>Sw-A)ob!JT;m5y>Akpyu*~`eacLL z;`;~+Q#RTEw{ -MetricName PageViews -TimeGrain 00:05:00 -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType -Average +Get-AzMetric -ResourceId -MetricName PageViews -TimeGrain 00:05:00 -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType ``` ```output diff --git a/src/Monitor/Monitor/help/New-AzAlertRuleEmail.md b/src/Monitor/Monitor/help/New-AzAlertRuleEmail.md index b9f8e888fe4e..c67848d6a9bb 100644 --- a/src/Monitor/Monitor/help/New-AzAlertRuleEmail.md +++ b/src/Monitor/Monitor/help/New-AzAlertRuleEmail.md @@ -25,7 +25,7 @@ The **New-AzAlertRuleEmail** cmdlet creates an e-mail action for an alert rule. ### Example 1: Create an alert rule email action for service owners ```powershell -New-AzAlertRuleEmail -SendToServiceOwners +New-AzAlertRuleEmail -SendToServiceOwner ``` This command creates an alert rule email action to send for its service owners when an alert rule is fired. @@ -39,7 +39,7 @@ This command creates an alert rule email action for the specified email addresse ### Example 3: Create an alert rule email action for service owners and non-service owners ```powershell -New-AzAlertRuleEmail -CustomEmail pattif@contoso.net -SendToServiceOwners +New-AzAlertRuleEmail -CustomEmail pattif@contoso.net -SendToServiceOwner ``` This command creates an alert rule email action for the specified address and for its service owners. diff --git a/src/Monitor/Monitor/help/New-AzMetricAlertRuleV2Criteria.md b/src/Monitor/Monitor/help/New-AzMetricAlertRuleV2Criteria.md index a32dca1dba38..1725174b8092 100644 --- a/src/Monitor/Monitor/help/New-AzMetricAlertRuleV2Criteria.md +++ b/src/Monitor/Monitor/help/New-AzMetricAlertRuleV2Criteria.md @@ -62,7 +62,7 @@ This command creates a simple metric alert criteria that can be used in a metric ### Example 2: Create a dynamic metric alert criteria ```powershell -New-AzMetricAlertRuleV2Criteria -Dynamic -MetricName "Percentage CPU" -MetricNameSpace "Microsoft.Compute/virtualMachines" -TimeAggregation Average -Operator GreaterThan -ThresholdSensitivity Medium -ViolationCount 2 -ExaminedAggregatedPointCount 4 +New-AzMetricAlertRuleV2Criteria -DynamicThreshold -MetricName "Percentage CPU" -MetricNameSpace "Microsoft.Compute/virtualMachines" -TimeAggregation Average -Operator GreaterThan -ThresholdSensitivity Medium -ViolationCount 2 -ExaminedAggregatedPointCount 4 ``` ```output diff --git a/src/Monitor/Monitor/help/Remove-AzActionGroup.md b/src/Monitor/Monitor/help/Remove-AzActionGroup.md index 97b3b70de888..22eab27bf34c 100644 --- a/src/Monitor/Monitor/help/Remove-AzActionGroup.md +++ b/src/Monitor/Monitor/help/Remove-AzActionGroup.md @@ -38,7 +38,7 @@ The **Remove-AzActionGroup** cmdlet removes an action group. ### Example 1: Remove an action group ```powershell -Remove-AzActionGroup -ResourceGroup "Default-Web-CentralUS" -Name "myActionGroup" +Remove-AzActionGroup -ResourceGroupName "Default-Web-CentralUS" -Name "myActionGroup" ``` ```output diff --git a/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md b/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md index 367ffd4c7f28..aef6771f7f84 100644 --- a/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md +++ b/src/Monitor/Monitor/help/Remove-AzActivityLogAlert.md @@ -40,7 +40,7 @@ This cmdlet implements the ShouldProcess pattern, i.e. it might request confirma ### Example 1: Remove an activity log alert ```powershell -Remove-AzActivityLogAlert -ResourceGroup "Default-Web-CentralUS" -Name "myalert" +Remove-AzActivityLogAlert -ResourceGroupName "Default-Web-CentralUS" -Name "myalert" ``` ```output @@ -53,7 +53,7 @@ Removes an activity log alert using name and resource group name as inputs. ### Example 2: Remove an activity log alert using a PSActivityLogAlertResource as input ```powershell -Get-AzActivityLogAlert -ResourceGroup "Default-activityLogAlerts" -Name "alert1" | Remove-AzActivityLogAlert +Get-AzActivityLogAlert -ResourceGroupName "Default-activityLogAlerts" -Name "alert1" | Remove-AzActivityLogAlert ``` ```output diff --git a/src/Monitor/Monitor/help/Remove-AzDataCollectionRuleAssociation.md b/src/Monitor/Monitor/help/Remove-AzDataCollectionRuleAssociation.md index 7eed76ad0d79..31e11b9bd0ee 100644 --- a/src/Monitor/Monitor/help/Remove-AzDataCollectionRuleAssociation.md +++ b/src/Monitor/Monitor/help/Remove-AzDataCollectionRuleAssociation.md @@ -65,7 +65,7 @@ $dcrAssoc | Remove-AzDataCollectionRule ### Example 3: Delete data collection rule with the association resource ID property ```powershell -Remove-AzDataCollectionRule -AssociationId $dcrAssoc.Id +Remove-AzDataCollectionRuleAssociation -AssociationId $dcrAssoc.Id ``` ## PARAMETERS diff --git a/src/Monitor/Monitor/help/Set-AzActionGroup.md b/src/Monitor/Monitor/help/Set-AzActionGroup.md index 5c365cfec247..0b54a7d87e5a 100644 --- a/src/Monitor/Monitor/help/Set-AzActionGroup.md +++ b/src/Monitor/Monitor/help/Set-AzActionGroup.md @@ -46,7 +46,7 @@ The **Set-AzActionGroup** cmdlet creates a new or updates an existing action gro ```powershell $email1 = New-AzActionGroupReceiver -Name 'user1' -EmailReceiver -EmailAddress 'user1@example.com' $sms1 = New-AzActionGroupReceiver -Name 'user2' -SmsReceiver -CountryCode '1' -PhoneNumber '5555555555' -Set-AzActionGroup -Name $actionGroupName -ResourceGroup $resourceGroupName -ShortName $shortName -Receiver $email1,$sms1 +Set-AzActionGroup -Name $actionGroupName -ResourceGroupName $resourceGroupName -ShortName $shortName -Receiver $email1,$sms1 ``` The first two commands create two receivers. From 0cf496f109e729dc1c00e3a626a0e8a49fad6c22 Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Fri, 15 Apr 2022 14:59:57 +0800 Subject: [PATCH 2/3] Fix Az.Monitor Syntax Errors --- src/Monitor/Monitor/help/Add-AzWebtestAlertRule.md | 2 +- src/Monitor/Monitor/help/Get-AzMetric.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monitor/Monitor/help/Add-AzWebtestAlertRule.md b/src/Monitor/Monitor/help/Add-AzWebtestAlertRule.md index d3027cbdaeba..5184df6c114d 100644 --- a/src/Monitor/Monitor/help/Add-AzWebtestAlertRule.md +++ b/src/Monitor/Monitor/help/Add-AzWebtestAlertRule.md @@ -30,7 +30,7 @@ This cmdlet implements the ShouldProcess pattern, i.e. it might request confirma ### Example 1: Add a webtest alert rule ```powershell -Add-AzWebtestAlertRule -Name "webtestRule" -Location "East US" -ResourceGroup "Default-Web-EastUS" -WindowSize 00:05:00 -MetricName "metric" -TargetResourceUri "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourcegroups/Default-Web-WestUS/providers/Microsoft.Insights/webtests/leowebtestr1-webtestr1" -Description "Nice Webtest rule" +Add-AzWebtestAlertRule -Name "webtestRule" -Location "East US" -ResourceGroup "Default-Web-EastUS" -WindowSize 00:05:00 -MetricName "metric" -TargetResourceUri "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourcegroups/Default-Web-WestUS/providers/Microsoft.Insights/webtests/leowebtestr1-webtestr1" -Description "Nice Webtest rule" -FailedLocationCount 3 ``` ```output diff --git a/src/Monitor/Monitor/help/Get-AzMetric.md b/src/Monitor/Monitor/help/Get-AzMetric.md index 66f97306a64e..5d06f49a047d 100644 --- a/src/Monitor/Monitor/help/Get-AzMetric.md +++ b/src/Monitor/Monitor/help/Get-AzMetric.md @@ -173,7 +173,7 @@ This command gets detailed output for the Requests metric. ```powershell $dimFilter = @((New-AzMetricFilter -Dimension City -Operator eq -Value "Seattle","Toronto"), (New-AzMetricFilter -Dimension AuthenticationType -Operator eq -Value User)) -Get-AzMetric -ResourceId -MetricName PageViews -TimeGrain 00:05:00 -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType +Get-AzMetric -ResourceId -MetricName PageViews -TimeGrain 00:05:00 -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType Average ``` ```output From 72635bff9c2093e8c9a917a803ddebd847351744 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Fri, 22 Apr 2022 15:52:44 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Delete=20Monitor=20-=20=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E6=96=B9=E5=BC=8F.lnk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\253\346\215\267\346\226\271\345\274\217.lnk" | Bin 1194 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" diff --git "a/src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" "b/src/Monitor - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" deleted file mode 100644 index 8049205a5ce0e7aa2fcd21270044fc8b553d30ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1194 zcmb_bUr1A76#q?)W|oqJ3U(npNGtHl+BWH2Q9J5w?S>B&3zkS!U8d=eafa zXVo}tF!ZJ3NMW8BmCCLcSxU4;I9RPgxuw!%t!Sr^fOy1Vak54DWNR1XD|*V3w{vQu zlD{^|IWijILl6!~@WVycOOFn9aHE<00IDfH1)i{0n;>a5I9+wlYSOWmHKG-3Zx>3u ztTk=ojfGmWrlmji5_Yr_qeLpYf9kSQNkplMl>AZ+jz=^u+dG7k9M%{pVvXnq9&>I| z`H8=V-tEBo2$PGL%6tv(W}gIOn5|84X*+~73ftW|W{M@OA5ANjD5LH)D829zFOW>A zCF~*aH*7rRHGhZl)5d%-G6~BkD$Au))(~avX441dAuGh%LV$*;`!2vo^M+xd#&@%$F^I! z55Fed`Tl!!+<4;GM(;n;hT?(#F5=FrD6d#BOnfN7jpE^-Gl>I!=K(jxdGAOgXbGWK zry~=E$fI&MzDnYTSKtr}(6~zAA`D9zV~fSRHG@krHu>I{k^L0kLQslOlZ`$hJ^|&j z8)<>g73GghrDYuZTskkVJC@JpUIaLM8-cC`u>Sw-A)ob!JT;m5y>Akpyu*~`eacLL z;`;~+Q#RTEw{