Skip to content

how to remove multiple IP configurations from one network interface #17718

Answered by CaptainFanZzz
say2merohit asked this question in Q&A
Discussion options

You must be logged in to vote

Here is the script.

Get-AzNetworkInterfaceIpConfig -NetworkInterface $MYnic | Select-Object -Skip 1 | Foreach-Object {
Remove-AzNetworkInterfaceIpConfig -NetworkInterface $MYnic -Name $_.Name | Set-AzNetworkInterface
}

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@say2merohit
Comment options

@CaptainFanZzz
Comment options

@say2merohit
Comment options

@dingmeng-xue
Comment options

Comment options

You must be logged in to vote
1 reply
@dingmeng-xue
Comment options

Comment options

You must be logged in to vote
3 replies
@CaptainFanZzz
Comment options

@say2merohit
Comment options

@CaptainFanZzz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants