Skip to content

Commit 9a4ef6b

Browse files
authored
Merge pull request Azure#12285 from Azure/surajmb-patch-1
Removed invalid example
2 parents 2e8d288 + bc3cf9d commit 9a4ef6b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ PS C:\> $AppGw = Add -AzApplicationGatewayBackendAddressPool -ApplicationGateway
4141

4242
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 adds the back-end address pool of the application gateway stored in $AppGw by using IP addresses.
4343

44-
### Example 3: Seta back-end address pool by using the ID of the backend server's IP address
45-
```
46-
PS C:\>$Nic01 = Get-AzNetworkInterface -Name "Nic01" -ResourceGroupName "ResourceGroup01"
47-
PS C:\> $Nic02 = Get-AzNetworkInterface -Name "Nic02" -ResourceGroupName "ResourceGroup01"
48-
PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
49-
PS C:\> $AppGw = Add-AzApplicationGatewayBackendAddressPool -ApplicationGateway $ AppGw -Name "Pool02" -BackendIPConfigurationIds $nic01.Properties.IpConfigurations[0].Id, $nic02.Properties.IpConfiguration[0].Id
50-
```
51-
52-
The first command gets a network interface object named Nic01 that belongs to the resource group named ResourceGroup01, and stores it in the $Nic01 variable.The second command gets a network interface object named Nic02 that belongs to the resource group named ResourceGroup02, and stores it in the $Nic02 variable.The third command gets the application gateway named ApplicationGateway01 in the resource group named ResourceGroup01, and stores it in the $AppGw variable.The forth command uses the back-end IP configuration IDs from $Nic01 and $Nic02 to add the back-end address pool of the application gateway stored in $AppGw.
53-
5444
## PARAMETERS
5545

5646
### -ApplicationGateway
@@ -184,4 +174,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
184174
185175
[Set-AzApplicationGatewayBackendAddressPool](./Set-AzApplicationGatewayBackendAddressPool.md)
186176
187-
177+
[Set-AzNetworkInterfaceIpConfig](./Set-AzNetworkInterfaceIpConfig.md)

0 commit comments

Comments
 (0)