Adding gateway to existing vnet

Gregory Wood 1 Reputation point

Simple set up. The network is The default is the same. I want to add appgateway. There are no open ports. I connected into 'subnets' and tried to change it from to It said "in use and cannot be edited" How do I get around this?

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
833 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 66,051 Reputation points Microsoft MVP

    Hi @Gregory Wood ,

    as long as there are Connected devices in a subnet in an Azure Virtual Network you can't modify the subnet. No chance.

    If I understand your scenario right:
    You Azure Virtual Network: address space:
    The subnet of the Virtual Network address space:

    You want to add an additional subnet (for deployment of an Azure VPN Gateway)?

    If so, you need to extend the Virtual Network, for instance to This is possible if there are connected devices with the existing subnet which will not be modified.
    If you extended the Virtual Network's address space to you should be able to add an additional subnet, for instance with address space, to the Virtual Network without any problem.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Andreas Baumgarten

    No comments

  2. Greg Wood 1 Reputation point

    I found that yes, I could not change the subnet settings. I went back and expanded the base settings from /24 to /22. Then I was able to create a second subnet.
    Thank you for your time.