Hello @prasantc ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you were able to downsize your Vnets from /20 to /21 which were peered to other Vnets and the subnet was not using all the IP scope but doing the same in production with same range of IPs and subnets in a Vnet errored out as it had a remote hub peering on a VWAN. You would like to if there is a resize limitation and what is the best approach to downsize Vnet with remote hub peering.
As per Vnet peering documentation,
You can resize the address space of Azure virtual networks that are peered without incurring any downtime on the currently peered address space. Once the address space is resized, peers must sync with the new address space changes. Resizing works for both IPv4 and IPv6 address spaces.
However, this feature doesn't support scenarios where the virtual network to be updated is peered with:
- A classic virtual network
- A managed virtual network such as the Azure VWAN hub
If your Vnet has a remote hub peering on a VWAN, then downsizing/re-sizing the Vnet in such a case is not supported.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.