Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,674 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello:
I have couple of subnets and i am not sure if that subnet is in used by any resources.
I want to drop\delete those 2 subnets to freeup for better use.
Can someone guide me to identify if those 2 subnets are in use before i delete them?
Any help is greatly appreciated.
Hello @Jayesh Dave
In your case, you can simply try to delete subnets.
If subnets have linked devices/resources, Azure will give an error and won't delete subnets
You can get get detailed information about subnet IpConfigurations using Powershell
$result=Get-AzVirtualNetwork -Name '<vnet name>' -ResourceGroupName '<group nmae>' -ExpandResource 'subnets/ipConfigurations'
$result.Subnets[0].IpConfigurations