I have created two Virtual Networks in the same region but in a different resource group.
But still, I'm getting a warning like The address space '10.0.0.0/16' overlaps with '10.0.0.0/16' in virtual network 'XYZ-VNET'.
I referred to this link https://stackoverflow.com/a/41827643/6339597 but I still have some doubts because one of the resource groups is in production and another one is in a testing stage. Will it create any issues in the future?
How can I change address space of VNet? Because while deploying MongoDB sharding cluster it didn't ask me about address space for VNet.
but I still have some doubts because one of the resource group is in production and another one is in testing stage.will it create any issue in future?
As juunas said, it is only a warn. If you don't connect the two VNets, it does not create any issue in future. If you want to create a VNet-to-VNet VPN between the two VNet or peering the two VNet, it is not possible. Because they all require it:
Do not overlap networks of each VNet.
If possible, I suggest you could use different VNet address ranges. Such as like 10.1.0.0/16.
Update from comment:
You could edit the template when you deploy it.

Note: If you want to change address ranges, please ensure you modify all of the ip address in the template.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With