Skip to content

Updating set command in example #15277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ The **Remove-AzApplicationGatewayBackendAddressPool** cmdlet removes a back-end
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayBackendAddressPool -ApplicationGateway $AppGw -Name "BackEndPool02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ The Remove-AzApplicationGatewayBackendHttpSetting cmdlet removes back-end Hypert
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayBackendHttpSetting -ApplicationGateway $AppGw -Name "BackEndSetting02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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 back-end HTTP setting named BackEndSetting02 from the application gateway stored in $AppGw.
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.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ The **Remove-AzApplicationGatewayClientAuthConfiguration** cmdlet removes the cl
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $profile = Get-AzApplicationGatewaySslProfile -Name "Profile01" -ApplicationGateway $AppGw
PS C:\> Remove-AzApplicationGatewayClientAuthConfiguration -SslProfile $profile
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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.
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.

## PARAMETERS

Expand Down Expand Up @@ -82,4 +83,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

[Get-AzApplicationGatewayClientAuthConfiguration](./Get-AzApplicationGatewayClientAuthConfiguration.md)

[Set-AzApplicationGatewayClientAuthConfiguration](./Set-AzApplicationGatewayClientAuthConfiguration.md)
[Set-AzApplicationGatewayClientAuthConfiguration](./Set-AzApplicationGatewayClientAuthConfiguration.md)
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ The **Remove-AzApplicationGatewayConnectionDraining** cmdlet removes the connect
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $Settings = Get-AzApplicationGatewayBackendHttpSettings -Name "Settings01" -ApplicationGateway $AppGw
PS C:\> Remove-AzApplicationGatewayConnectionDraining -BackendHttpSettings $Settings
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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 back-end HTTP settings named Settings01 for $AppGw and stores the settings in the $Settings variable.
The last command removes the connection draining configuration of the back-end HTTP settings stored in $Settings.
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.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ The **Remove-AzApplicationGatewayCustomError** cmdlet removes a custom error fro

### Example 1: Removes custom error from an application gateway
```
PS C:\> $updatedgateway = Remove-AzApplicationGatewayCustomError -ApplicationGateway $appgw -StatusCode HttpStatus502
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayCustomError -ApplicationGateway $AppGw -StatusCode HttpStatus502
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

This command removes the custom error of http status code 502 from the application gateway $appgw, and return the updated gateway.
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 removes the custom error for HTTP Status Code 502 from the application gateway and returns the updated gateway.
The last command updates the application gateway.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayFrontendIPConfig** cmdlet removes frontend IP f
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayFrontendIPConfig -ApplicationGateway $AppGw -Name "FrontEndIP02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayFrontendPort** cmdlet removes a front-end port
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayFrontendPort -ApplicationGateway $AppGw -Name "FrontEndPort02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayHttpListener** cmdlet removes an HTTP listener
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayIPConfiguration** cmdlet removes an IP configur
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "Subnet02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ The **Remove-AzApplicationGatewayPrivateLinkConfiguration** cmdlet removes an pr

### Example 1: Remove an application gateway PrivateLink Configuration
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayPrivateLinkConfiguration -ApplicationGateway $AppGw -Name "privateLinkConfig01"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

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

## PARAMETERS

Expand Down Expand Up @@ -99,4 +101,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

[Get-AzApplicationGatewayPrivateLinkConfiguration](./Get-AzApplicationGatewayPrivateLinkConfiguration.md)

[Set-AzApplicationGatewayPrivateLinkConfiguration](./Set-AzApplicationGatewayPrivateLinkConfiguration.md)
[Set-AzApplicationGatewayPrivateLinkConfiguration](./Set-AzApplicationGatewayPrivateLinkConfiguration.md)
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ The **Remove-AzApplicationGatewayRedirectConfiguration** cmdlet removes a redire
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\>$AppGw = Remove-AzApplicationGatewayRedirectConfiguration -ApplicationGateway $AppGw -Name "Redirect01"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ The **Remove-AzApplicationGatewayRequestRoutingRule** cmdlet removes a request r
```
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGw -Name "Rule02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ The **Remove-AzApplicationGatewayRewriteRuleSet** cmdlet removes a rewrite rule
```powershell
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewayRewriteRuleSet -ApplicationGateway $AppGw -Name "RuleSet02"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
```

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ The **Remove-AzApplicationGatewaySslCertificate** cmdlet removes a Secure Socket

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

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

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ The Remove-AzApplicationGatewaySslPolicy cmdlet removes SSL policy from an Azure
```
PS C:\>$AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGW = Remove-AzApplicationGatewaySslPolicy -ApplicationGateway $AppGW
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGW
```

This command removes the SSL policy from the application gateway named ApplicationGateway01.
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 removes the SSL policy from the application gateway.
The last command updates the application gateway.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ The **Remove-AzApplicationGatewaySslProfile** cmdlet removes the ssl profile fro

### Example 1
```powershell
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> Remove-AzApplicationGatewaySslProfile -ApplicationGateway $AppGw -Name "SslProfile01"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $AppGw
```

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.
The last command updates the application gateway.

## PARAMETERS

Expand Down Expand Up @@ -98,4 +100,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

[Get-AzApplicationGatewaySslProfile](./Get-AzApplicationGatewaySslProfile.md)

[Set-AzApplicationGatewaySslProfile](./Set-AzApplicationGatewaySslProfile.md)
[Set-AzApplicationGatewaySslProfile](./Set-AzApplicationGatewaySslProfile.md)
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ The **Remove-AzApplicationGatewayTrustedClientCertificate** cmdlet removes the t
```powershell
PS C:\> $gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
PS C:\> $gw = Remove-AzApplicationGatewayTrustedClientCertificate -ApplicationGateway $gw -Name "TrustedClientCertificate01"
PS C:\> Set-AzApplicationGateway -ApplicationGateway $gw
```

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 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.

## PARAMETERS

Expand Down Expand Up @@ -129,4 +130,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

[Get-AzApplicationGatewayTrustedClientCertificate](./Get-AzApplicationGatewayTrustedClientCertificate.md)

[Set-AzApplicationGatewayTrustedClientCertificate](./Set-AzApplicationGatewayTrustedClientCertificate.md)
[Set-AzApplicationGatewayTrustedClientCertificate](./Set-AzApplicationGatewayTrustedClientCertificate.md)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ An IP configuration contains the subnet in which an application gateway is deplo
PS C:\>$VNet = Get-AzVirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01"
PS C:\> $Subnet = Get-AzVirtualNetworkSubnetConfig -Name "Subnet01" -VirtualNetwork $VNet
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Set-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "AppgwSubnet01" -Subnet $Subnets
PS C:\> $AppGw = Set-AzApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "AppgwSubnet01" -Subnet $Subnet
```

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