Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

How to remove network security group in resource manage

$
0
0

Hi, I use command: Remove-AzureRmNetworkSecurityGroup -Name  $nsg -ResourceGroupName $rg -Force | Set-AzureRmNetworkSecurityGroup, but gor error:

I guess the reason is because the networksecuritygroup associate with a subnet, I tried commandline:

Set-AzureRmVirtualNetworkSubnetConfig -VirtualNetwork $virtualnetwork -Name $subnet.Name -AddressPrefix $subnet.AddressPrefix | Set-AzureRmVirtualNetwork

but it does not work.

How can I remove the networksecuritygroup through script?


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>