Adding gateway to existing vnet

Gregory Wood 1 Reputation point
2021-04-24T21:44:37.713+00:00

Simple set up. The network is 10.0.0.0/24. 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 10.0.0.0/24 to 10.0.0.0/26. 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.
1,768 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 122.1K Reputation points MVP Volunteer Moderator
    2021-04-24T22:21:42.133+00:00

    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: 10.0.0.0/24
    The subnet of the Virtual Network address space: 10.0.0.0/24

    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 10.0.0.0/16. 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 10.0.0.0/16 you should be able to add an additional subnet, for instance with address space 10.0.1.0/24, 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)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Greg Wood 1 Reputation point
    2021-05-01T23:35:06.967+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.