From 51bb40ad4aae1a150556829f67bf405dea50534c Mon Sep 17 00:00:00 2001 From: Lohith Chowdary Chilukuri <69338278+Lochiluk@users.noreply.github.com> Date: Thu, 10 Sep 2020 11:14:24 -0500 Subject: [PATCH] Update Remove-AzNetworkInterfaceIpConfig.md (#12807) * Update Remove-AzNetworkInterfaceIpConfig.md Set command is mandatory after we do a remove command * Update Remove-AzNetworkInterfaceIpConfig.md Co-authored-by: Mike F. Robbins --- .../Network/help/Remove-AzNetworkInterfaceIpConfig.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Network/Network/help/Remove-AzNetworkInterfaceIpConfig.md b/src/Network/Network/help/Remove-AzNetworkInterfaceIpConfig.md index 1b71ba4e14a6..23b62ebb2084 100644 --- a/src/Network/Network/help/Remove-AzNetworkInterfaceIpConfig.md +++ b/src/Network/Network/help/Remove-AzNetworkInterfaceIpConfig.md @@ -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