question

GregoryWood-9281 avatar image
0 Votes"
GregoryWood-9281 asked GregWood-9653 answered

Adding gateway to existing vnet

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
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GregoryWood-9281 ,

are there any additional questions?
If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A


Regards
Andreas Baumgarten

0 Votes 0 ·

Hello @GregoryWood-9281 ,

As @AndreasBaumgarten mentioned, If no resources are deployed within the subnet, you can change the address range. If any resources exist in the subnet, you must either move the resources to another subnet, or delete them from the subnet first.
Please refer : https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-subnet#change-subnet-settings

So in your case, you could opt for modifying the Vnet address range to 10.0.0.0/16 and add a new subnet to deploy your application gateway.
Please refer : https://docs.microsoft.com/en-us/azure/virtual-network/manage-virtual-network#add-or-remove-an-address-range

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.

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered GregWood-9653 converted comment to answer

Hi @GregoryWood-9281 ,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GregWood-9653 avatar image
0 Votes"
GregWood-9653 answered

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @GregoryWood-9281 ,

Thank you for the update. Happy to hear that the issue is now resolved.


Please don't forget to "Accept the answer" on the above provided answer. This will help us and others in the community as well.

0 Votes 0 ·