diff --git a/src/Network/Network/help/Add-AzApplicationGatewayBackendAddressPool.md b/src/Network/Network/help/Add-AzApplicationGatewayBackendAddressPool.md index 0781aa7b0f5d..52ec42e85ac7 100644 --- a/src/Network/Network/help/Add-AzApplicationGatewayBackendAddressPool.md +++ b/src/Network/Network/help/Add-AzApplicationGatewayBackendAddressPool.md @@ -41,16 +41,6 @@ PS C:\> $AppGw = Add -AzApplicationGatewayBackendAddressPool -ApplicationGateway 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. -### Example 3: Seta back-end address pool by using the ID of the backend server's IP address -``` -PS C:\>$Nic01 = Get-AzNetworkInterface -Name "Nic01" -ResourceGroupName "ResourceGroup01" -PS C:\> $Nic02 = Get-AzNetworkInterface -Name "Nic02" -ResourceGroupName "ResourceGroup01" -PS C:\> $AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01" -PS C:\> $AppGw = Add-AzApplicationGatewayBackendAddressPool -ApplicationGateway $ AppGw -Name "Pool02" -BackendIPConfigurationIds $nic01.Properties.IpConfigurations[0].Id, $nic02.Properties.IpConfiguration[0].Id -``` - -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. - ## PARAMETERS ### -ApplicationGateway @@ -184,4 +174,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [Set-AzApplicationGatewayBackendAddressPool](./Set-AzApplicationGatewayBackendAddressPool.md) - +[Set-AzNetworkInterfaceIpConfig](./Set-AzNetworkInterfaceIpConfig.md)