Hi suraj singh,
Yes, in Azure, VMs can be in the same CIDR block and You can’t directly change a VM’s subnet, but you can change the subnet of the Network Interface Card (NIC) it’s connected to. This will restart the VM. Be careful not to overlap your network ranges.
The operation at CIDR and subnet beloggings are managed by the NIC of Virtual machine so any changes required will required an action over this Azure resource.
Additional references:
- https://devblogs.microsoft.com/premier-developer/understanding-cidr-notation-when-designing-azure-virtual-networks-and-subnets/
- https://learn.microsoft.com/en-us/azure/virtual-network/concepts-and-best-practices
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-faq#can-i-modify-a-virtual-network-after-i-create-it
If the information helped address your question, please Accept the answer.
Luis