Skip to content

Commit

Permalink
Update Remove-AzNetworkInterfaceIpConfig.md (#12807)
Browse files Browse the repository at this point in the history
* Update Remove-AzNetworkInterfaceIpConfig.md

Set command is mandatory after we do a remove command

* Update Remove-AzNetworkInterfaceIpConfig.md

Co-authored-by: Mike F. Robbins <[email protected]>
  • Loading branch information
Lochiluk and mikefrobbins authored Sep 10, 2020
1 parent 344a3ee commit 51bb40a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Network/Network/help/Remove-AzNetworkInterfaceIpConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ The **Remove-AzNetworkInterfaceIpConfig** cmdlet removes a network interface IP

## EXAMPLES

### 1: Delete an IP configuration from a network interface
```
### Example 1: Delete an IP configuration from a network interface
```powershell
$nic = Get-AzNetworkInterface -Name mynic -ResourceGroupName myrg
Remove-AzNetworkInterfaceIpConfig -Name IPConfig-1 -NetworkInterface $nic
Set-AzNetworkInterface -NetworkInterface $nic
```

The first command gets a network interface called mynic and stores it in the variable $nic. The second command
removes the IP configuration called IPConfig-1 associated with this network interface.
removes the IP configuration called IPConfig-1 associated with this network interface. The third command sets changes made to the network interface.

## PARAMETERS

Expand Down

0 comments on commit 51bb40a

Please sign in to comment.