An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
You can't modify a subnet if there are any resources attached to it - as per https://learn.microsoft.com/bs-latn-ba/azure/virtual-network/virtual-network-manage-subnet?tabs=azure-portal#change-subnet-settings
This means you effectively have two primary options:
- provision a new VNET with GatewaySubnet of increased size - you can potentially designate it as a "hub" vnet and peer to the existing one (and delete the gateway/GatewaySubnet from it)
- delete the gateway, recreate GatewaySubnet and redeploy the gateway. A rough timeline should be actually acceptable from the business impact perspective - assuming you're not operating 24/7 - just consider that the public IP address will be changing. More at https://community.spiceworks.com/t/resize-vnet-gatewaysubnet-in-azure/633626
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin