Change subnet

Copper Contributor

we have the usual vnet setup with a/24 subnet split into /25 for vms and /27 for DMZ and /27 for Bastion. the users were running out of IP addresses for VM deployment. I have setup a vnet with a /24 subnet which can give them more IPs but, they want the bastion to be enabled for accessing the VMs. I made sure the VMs are turned off and tried changing the subnet /25 but it says it is in use,. Does Azure allow changing the subnet? I know I can add a whole new subnet for bastion but, I'm thinking about the possibility of changing the same subnet for keeping it organized.

1 Reply
You can, but need to remove those VMs from the Subnet first. Then return after making the change

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-subnet