Skip to content

Commit 274c8af

Browse files
authored
Update Set-AzNetworkInterfaceIpConfig.md (#21193)
* Update Set-AzNetworkInterfaceIpConfig.md * Update Set-AzApplicationGatewayBackendAddressPool.md
1 parent b5ec69e commit 274c8af

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Set-AzApplicationGatewayBackendAddressPool -ApplicationGateway <PSApplicationGat
2121

2222
## DESCRIPTION
2323
The **Set-AzApplicationGatewayBackendAddressPool** cmdlet updates a back-end address pool for an Azure application gateway.
24-
Back-end addresses can be specified as IP addresses, fully-qualified domain names (FQDN) or IP configurations IDs.
24+
Back-end addresses can be specified as IP addresses or fully-qualified domain names (FQDN).
2525

2626
## EXAMPLES
2727

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,23 @@ $nic | Set-AzNetworkInterfaceIpConfig -Name ipconfig1 -PrivateIpAddress 10.0.0.1
7878
7979
$nic | Set-AzNetworkInterface
8080
```
81-
8281
In this example, the variable $asg contains a reference to an application security group.
8382
The fourth command gets the network interface nic1 associated with the IP
8483
configuration that needs to be updated. The Set-AzNetworkInterfaceIpConfig sets the private IP address of the primary IP
8584
configuration ipconfig1 to 10.0.0.11 and creates an association with the retrieved application security group.
8685
Finally, the last command updates the network interface ensuring the changes
8786
have been made successfully.
8887

88+
### 3: Disassociating an IP configuration with an application gateway backend address pool
89+
```powershell
90+
$nic = Get-AzNetworkInterface -Name nic1 -ResourceGroupName myrg
91+
92+
$nic | Set-AzNetworkInterfaceIpConfig -Name ipconfig1 -ApplicationGatewayBackendAddressPool $null
93+
94+
$nic | Set-AzNetworkInterface
95+
```
96+
The Set-AzNetworkInterfaceIpConfig sets the application gateway backend address pool of the IP configuration ipconfig1 to null and disassociate with the network interface. Finally, the last command updates the network interface ensuring the changes have been made successfully.
97+
8998
## PARAMETERS
9099

91100
### -ApplicationGatewayBackendAddressPool

0 commit comments

Comments
 (0)