Skip to content

Commit 9e8b216

Browse files
author
Maddie Clayton
authored
Merge pull request Azure#8569 from maddieclayton/fixhelp1
Update help files per user feedback
2 parents 9fff852 + 5c8264b commit 9e8b216

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Update help for Import-AzAutomationDscNodeConfiguration
2122
* Added configuration name validation to Import-AzAutomationDscConfiguration cmdlet
2223
* Improved error handling for Import-AzAutomationDscConfiguration cmdlet
2324

src/Automation/Automation/help/Import-AzAutomationDscNodeConfiguration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Specify the path of a .mof file.
2727

2828
### Example 1: Import a DSC node configuration into Automation
2929
```
30-
PS C:\>Import-AzAutomationDscConfiguration -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -ConfigurationName "ContosoConfiguration" -Path "C:\DSC\webserver.mof" -Force
30+
PS C:\>Import-AzAutomationDscNodeConfiguration -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -ConfigurationName "ContosoConfiguration" -Path "C:\DSC\webserver.mof" -Force
3131
```
3232

3333
This command imports a DSC node configuration from the file named webserver.mof into the Automation account named Contoso17, under the DSC configuration ContosoConfiguration.
@@ -36,7 +36,7 @@ If there is an existing DSC node configuration named ContosoConfiguration.webser
3636

3737
### Example 2: Import a DSC node configuration into Automation and create a new build version and not overwrite existing NodeConfiguration.
3838
```
39-
PS C:\>Import-AzAutomationDscConfiguration -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -ConfigurationName "ContosoConfiguration" -Path "C:\DSC\webserver.mof" -IncrementNodeConfigurationBuild
39+
PS C:\>Import-AzAutomationDscNodeConfiguration -AutomationAccountName "Contoso17" -ResourceGroupName "ResourceGroup01" -ConfigurationName "ContosoConfiguration" -Path "C:\DSC\webserver.mof" -IncrementNodeConfigurationBuild
4040
```
4141

4242
This command imports a DSC node configuration from the file named webserver.mof into the Automation account named Contoso17, under the DSC configuration ContosoConfiguration.

src/Monitor/Monitor/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Update help for Get-AzMetric
2122

2223
## Version 1.0.0
2324
* General availability of `Az.Monitor` module

src/Monitor/Monitor/help/Get-AzMetric.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ This command gets detailed output for the Requests metric.
164164
```
165165
PS C:\> $dimFilter = @((New-AzMetricFilter -Dimension City -Operator eq -Values "Seattle","Toronto"), (New-AzMetricDimensionFilter -Dimension AuthenticationType -Operator eq -Values User))
166166
167-
PS C:\> Get-AzMetricValues -ResourceId <resourcId> -MetricName PageViews -TimeGrain PT5M -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType -Average
167+
PS C:\> Get-AzMetric -ResourceId <resourcId> -MetricName PageViews -TimeGrain PT5M -MetricFilter $dimFilter -StartTime 2018-02-01T12:00:00Z -EndTime 2018-02-01T12:10:00Z -AggregationType -Average
168168
ResourceId : [ResourceId]
169169
MetricNamespace : Microsoft.Insights/ApplicationInsights
170170
Metric Name :

src/Monitor/Monitor/help/Set-AzDiagnosticSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Logs
7777
Category : Category4
7878
```
7979

80-
This command enables the metrics cateories called Category1 and Category2.
80+
This command disables the metrics cateories called Category1 and Category2.
8181
All the other categories remain the same.
8282

8383
### Example 4: Enable/disable multiple log categories

src/Network/Network/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
--->
2020
## Upcoming Release
21+
* Update help example for Add-AzApplicationGatewayCustomError
2122

2223
## Version 1.2.0
2324
* Added Cmdlets for Identity on Application Gateway.

src/Network/Network/help/Add-AzApplicationGatewayCustomError.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ PS C:\> $updatedgateway = Add-AzApplicationGatewayCustomError -ApplicationGatewa
3030

3131
This command adds a custom error of http status code 502 to the application gateway $appgw, and return the updated gateway.
3232

33+
### Example 2: Adds custom error to application gateway listener level
34+
```powershell
35+
PS C:\> $resourceGroup = "resourceGroupName"
36+
PS C:\> $AppGWName = "applicationGatewayName"
37+
PS C:\> $customError502Url = "https://mycustomerrorpages.blob.core.windows.net/errorpages/502.htm"
38+
PS C:\> $listenerName = "listenerName"
39+
PS C:\> $AppGw = Get-AzApplicationGateway -Name $AppGWName -ResourceGroupName $rg
40+
PS C:\> $listener = Get-AzApplicationGatewayHttpListener -ApplicationGateway $AppGW -Name $listenerName
41+
PS C:\> $updatedListener = Add-AzApplicationGatewayHttpListenerCustomError -HttpListener $listener -StatusCode HttpStatus502 -CustomErrorPageUrl $customError502Url
42+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
43+
```
44+
45+
This command adds a custom error of http status code 502 to the application gateway $appgw at the listener level, and return the updated gateway.
46+
3347
## PARAMETERS
3448

3549
### -ApplicationGateway

0 commit comments

Comments
 (0)