I have read the Microsoft documentation, and I know I can add/edit subnets. But it seems like I can't edit the GatewaySubnet that I created when I created the Gateway for the VNet, without deleting the Gateway. This is problematic for me, as upon re-creation of the Gateway, Azure will assign me a new IP address for that Gateway, which I do not want to do.
Is it possible to modify my current GatewaySubnet?
I have tried using Powershell commands, but I get an error that the subnet is currently in use and can't be modified while in use. I also have not found a way to change the status of a gateway from Active, without the gateway being deleted.
Any help or guidance would be greatly appreciated. Thank you.
Noah
Best Answer
You can't modify a subnet if there are any resources attached to it.
https://docs.microsoft.com/bs-latn-ba/azure/virtual-network/virtual-network-manage-subnet#change-subnet-settings
I guess you have two options, build a new vNET/Subnet with new gateways and switch the traffic over. Or redeploy the current setup with the risk of getting new IPs.