Skip to content

Commit 7f8a6c1

Browse files
msJinLeijaesoni
andauthored
Updating set command in example (#15277)
* Updating set command in example PS C:\> $updatedgateway = Set-AzApplicationGateway -ApplicationGateway $AppGW Finally, the third command updates the application gateway. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Update Remove-AzApplicationGatewayClientAuthConfiguration.md Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing steps * for setting application gateway confirguartions in a variable * for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. Adding Set-AzApplicationGateway command Adding the missing step for saving the gateway configuration. * Correcting minor error in the example Co-authored-by: jaesoni <[email protected]>
1 parent 102d25f commit 7f8a6c1

18 files changed

+48
-18
lines changed

src/Network/Network/help/Remove-AzApplicationGatewayBackendAddressPool.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ The **Remove-AzApplicationGatewayBackendAddressPool** cmdlet removes a back-end
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw -Name "BackEndPool02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
3031
```
3132

3233
The first command gets the application gateway named ApplicationGateway01 belonging to the resource group named ResourceGroup01 and saves it in the $AppGw variable.
33-
The second command removes the back-end address pool named BackEndPool02 from the application gateway.
34+
The second command removes the back-end address pool named BackEndPool02 from the application gateway. Finally, the third command updates the application gateway.
3435

3536
## PARAMETERS
3637

src/Network/Network/help/Remove-AzApplicationGatewayBackendHttpSetting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ The Remove-AzApplicationGatewayBackendHttpSetting cmdlet removes back-end Hypert
2626
```
2727
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> Remove-AzApplicationGatewayBackendHttpSetting -ApplicationGateway $AppGw -Name "BackEndSetting02"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
2930
```
3031

3132
The first command gets an application gateway named ApplicationGateway01 that belongs to the resource group named ResourceGroup01 and stores it in the $AppGw variable.
32-
The second command removes the back-end HTTP setting named BackEndSetting02 from the application gateway stored in $AppGw.
33+
The second command removes the back-end HTTP setting named BackEndSetting02 from the application gateway stored in $AppGw. Finally, the third command updates the application gateway.
3334

3435
## PARAMETERS
3536

src/Network/Network/help/Remove-AzApplicationGatewayClientAuthConfiguration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ The **Remove-AzApplicationGatewayClientAuthConfiguration** cmdlet removes the cl
2727
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> $profile = Get-AzApplicationGatewaySslProfile -Name "Profile01" -ApplicationGateway $AppGw
2929
PS C:\> Remove-AzApplicationGatewayClientAuthConfiguration -SslProfile $profile
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

32-
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw variable. The second command gets the SSL profile named Profile01 for $AppGw and stores it in the $profile variable. The last command removes the client authentication configuration of the ssl profile stored in $profile.
33+
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw variable. The second command gets the SSL profile named Profile01 for $AppGw and stores it in the $profile variable. The next command removes the client authentication configuration of the ssl profile stored in $profile. The last command updates the application gateway.
3334

3435
## PARAMETERS
3536

@@ -82,4 +83,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8283
8384
[Get-AzApplicationGatewayClientAuthConfiguration](./Get-AzApplicationGatewayClientAuthConfiguration.md)
8485
85-
[Set-AzApplicationGatewayClientAuthConfiguration](./Set-AzApplicationGatewayClientAuthConfiguration.md)
86+
[Set-AzApplicationGatewayClientAuthConfiguration](./Set-AzApplicationGatewayClientAuthConfiguration.md)

src/Network/Network/help/Remove-AzApplicationGatewayConnectionDraining.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ The **Remove-AzApplicationGatewayConnectionDraining** cmdlet removes the connect
2727
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> $Settings = Get-AzApplicationGatewayBackendHttpSettings -Name "Settings01" -ApplicationGateway $AppGw
2929
PS C:\> Remove-AzApplicationGatewayConnectionDraining -BackendHttpSettings $Settings
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

3233
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw variable.
3334
The second command gets the back-end HTTP settings named Settings01 for $AppGw and stores the settings in the $Settings variable.
34-
The last command removes the connection draining configuration of the back-end HTTP settings stored in $Settings.
35+
The third command removes the connection draining configuration of the back-end HTTP settings stored in $Settings. And, the last command updates the application gateway.
3536

3637
## PARAMETERS
3738

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ The **Remove-AzApplicationGatewayCustomError** cmdlet removes a custom error fro
2424

2525
### Example 1: Removes custom error from an application gateway
2626
```
27-
PS C:\> $updatedgateway = Remove-AzApplicationGatewayCustomError -ApplicationGateway $appgw -StatusCode HttpStatus502
27+
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
28+
PS C:\> Remove-AzApplicationGatewayCustomError -ApplicationGateway $AppGw -StatusCode HttpStatus502
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
2830
```
29-
30-
This command removes the custom error of http status code 502 from the application gateway $appgw, and return the updated gateway.
31+
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGw variable.
32+
The second command removes the custom error for HTTP Status Code 502 from the application gateway and returns the updated gateway.
33+
The last command updates the application gateway.
3134

3235
## PARAMETERS
3336

src/Network/Network/help/Remove-AzApplicationGatewayFrontendIPConfig.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayFrontendIPConfig** cmdlet removes frontend IP f
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayFrontendIPConfig -ApplicationGateway $AppGw -Name "FrontEndIP02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

3233
The first command gets an application gateway named ApplicationGateway01 and stores it in the $AppGw variable.
3334
The second command removes the front-end IP configuration named FrontEndIP02 from the application gateway stored in $AppGw.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewayFrontendPort.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayFrontendPort** cmdlet removes a front-end port
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayFrontendPort -ApplicationGateway $AppGw -Name "FrontEndPort02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

3233
The first command gets an application gateway named ApplicationGateway01 that belongs to the resource group named ResourceGroup01 and stores the gateway in $AppGw variable.
3334
The second command removes the port named FrontEndPort02 from the application gateway.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewayHttpListener.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayHttpListener** cmdlet removes an HTTP listener
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

3233
The first command gets an application gateway and stores it in the $AppGw variable.
3334
The second command removes the HTTP listener named Listener02 from the application gateway stored in $AppGw.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewayIPConfiguration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayIPConfiguration** cmdlet removes an IP configur
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "Subnet02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
3132

3233
The first command gets an application gateway and stores it in the $AppGw variable.
3334
The second command removes the IP configuration named Subnet02 from the application gateway stored in $AppGw.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewayPrivateLinkConfiguration.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ The **Remove-AzApplicationGatewayPrivateLinkConfiguration** cmdlet removes an pr
2424

2525
### Example 1: Remove an application gateway PrivateLink Configuration
2626
```
27-
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
27+
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> Remove-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $AppGw -Name "privateLinkConfig01"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
2930
```
3031

3132
The first command gets an application gateway and stores it in the $AppGw variable.
3233
The second command removes the privateLink configuration named privateLinkConfig01 from the application gateway stored in $AppGw.
34+
The last command updates the application gateway.
3335

3436
## PARAMETERS
3537

@@ -99,4 +101,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
99101
100102
[Get-AzApplicationGatewayPrivateLinkConfiguration](./Get-AzApplicationGatewayPrivateLinkConfiguration.md)
101103
102-
[Set-AzApplicationGatewayPrivateLinkConfiguration](./Set-AzApplicationGatewayPrivateLinkConfiguration.md)
104+
[Set-AzApplicationGatewayPrivateLinkConfiguration](./Set-AzApplicationGatewayPrivateLinkConfiguration.md)

src/Network/Network/help/Remove-AzApplicationGatewayRedirectConfiguration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ The **Remove-AzApplicationGatewayRedirectConfiguration** cmdlet removes a redire
2626
```
2727
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\>$AppGw = Remove-AzApplicationGatewayRedirectConfiguration -ApplicationGateway $AppGw -Name "Redirect01"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
2930
```
3031

3132
The first command gets an application gateway and stores it in the $AppGw variable.
3233
The second command removes the redirect configuration named Redirect01 from the application gateway stored in $AppGw.
34+
The last command updates the application gateway.
3335

3436
## PARAMETERS
3537

src/Network/Network/help/Remove-AzApplicationGatewayRequestRoutingRule.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayRequestRoutingRule** cmdlet removes a request r
2727
```
2828
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGw -Name "Rule02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
3031
```
3132

3233
The first command gets an application gateway and stores it in the $AppGw variable.
3334
The second command removes the request routing rule named Rule02 from the application gateway stored in $AppGw.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewayRewriteRuleSet.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ The **Remove-AzApplicationGatewayRewriteRuleSet** cmdlet removes a rewrite rule
2626
```powershell
2727
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> Remove-AzApplicationGatewayRewriteRuleSet -ApplicationGateway $AppGw -Name "RuleSet02"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
2930
```
3031

3132
The first command gets an application gateway and stores it in the $AppGw variable.
3233
The second command removes the rewrite rule set named RuleSet02 from the application gateway stored in $AppGw.
34+
The last command updates the application gateway.
3335

3436
## PARAMETERS
3537

src/Network/Network/help/Remove-AzApplicationGatewaySslCertificate.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ The **Remove-AzApplicationGatewaySslCertificate** cmdlet removes a Secure Socket
2525

2626
### Example 1: Remove an SSL certificate from an application gateway
2727
```
28-
PS C:\>$AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
28+
PS C:\> $AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> Remove-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert02"
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
3031
```
3132

3233
The first command gets the application gateway named ApplicationGateway01 and stores the result in the variable named $AppGW.
3334
The second command removes the SSL certificate named Cert02 from the application gateway stored in the $AppGW variable.
35+
The last command updates the application gateway.
3436

3537
## PARAMETERS
3638

src/Network/Network/help/Remove-AzApplicationGatewaySslPolicy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ The Remove-AzApplicationGatewaySslPolicy cmdlet removes SSL policy from an Azure
2727
```
2828
PS C:\>$AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2929
PS C:\> $AppGW = Remove-AzApplicationGatewaySslPolicy -ApplicationGateway $AppGW
30+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
3031
```
31-
32-
This command removes the SSL policy from the application gateway named ApplicationGateway01.
32+
The first command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01 and stores it in the $AppGW variable.
33+
The second command removes the SSL policy from the application gateway.
34+
The last command updates the application gateway.
3335

3436
## PARAMETERS
3537

src/Network/Network/help/Remove-AzApplicationGatewaySslProfile.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ The **Remove-AzApplicationGatewaySslProfile** cmdlet removes the ssl profile fro
2424

2525
### Example 1
2626
```powershell
27-
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
27+
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
2828
PS C:\> Remove-AzApplicationGatewaySslProfile -ApplicationGateway $AppGw -Name "SslProfile01"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
2930
```
3031

3132
The first command gets an application gateway named ApplicationGateway01 that belongs to the resource group named ResourceGroup01 and stores it in the $AppGw variable. The second command removes the ssl profile named SslProfile01 from the application gateway stored in $AppGw.
33+
The last command updates the application gateway.
3234

3335
## PARAMETERS
3436

@@ -98,4 +100,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
98100
99101
[Get-AzApplicationGatewaySslProfile](./Get-AzApplicationGatewaySslProfile.md)
100102
101-
[Set-AzApplicationGatewaySslProfile](./Set-AzApplicationGatewaySslProfile.md)
103+
[Set-AzApplicationGatewaySslProfile](./Set-AzApplicationGatewaySslProfile.md)

src/Network/Network/help/Remove-AzApplicationGatewayTrustedClientCertificate.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ The **Remove-AzApplicationGatewayTrustedClientCertificate** cmdlet removes the t
2626
```powershell
2727
PS C:\> $gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
2828
PS C:\> $gw = Remove-AzApplicationGatewayTrustedClientCertificate -ApplicationGateway $gw -Name "TrustedClientCertificate01"
29+
PS C:\> Set-AzApplicationGateway -ApplicationGateway $gw
2930
```
3031

31-
The first command gets an application gateway and stores it in the $gw variable. The second command removes the trusted client CA certificate chain named "TrustedClientCertificate01" from the application gateway stored in $gw.
32+
The first command gets an application gateway and stores it in the $gw variable. The second command removes the trusted client CA certificate chain named "TrustedClientCertificate01" from the application gateway stored in $gw. The last command updates the application gateway.
3233

3334
## PARAMETERS
3435

@@ -129,4 +130,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
129130
130131
[Get-AzApplicationGatewayTrustedClientCertificate](./Get-AzApplicationGatewayTrustedClientCertificate.md)
131132
132-
[Set-AzApplicationGatewayTrustedClientCertificate](./Set-AzApplicationGatewayTrustedClientCertificate.md)
133+
[Set-AzApplicationGatewayTrustedClientCertificate](./Set-AzApplicationGatewayTrustedClientCertificate.md)

src/Network/Network/help/Set-AzApplicationGatewayIPConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ An IP configuration contains the subnet in which an application gateway is deplo
3636
PS C:\>$VNet = Get-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01"
3737
PS C:\> $Subnet = Get-AzVirtualNetworkSubnetConfig -Name "Subnet01" -VirtualNetwork $VNet
3838
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
39-
PS C:\> $AppGw = Set-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "AppgwSubnet01" -Subnet $Subnets
39+
PS C:\> $AppGw = Set-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "AppgwSubnet01" -Subnet $Subnet
4040
```
4141

4242
The first command gets the virtual network named VNet01 that belongs to the resource group named ResourceGroup01 and stores it in the $VNet variable.

0 commit comments

Comments
 (0)