Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Subnet - Your subnet is not contained within the same address space for this virtual network

Tags:

azure

subnet

I Virtual Network has the following subnet 10.0.0.0/24 and I want to add another but each time I try I get: "Your subnet is not contained within the same address space for this virtual network"

How do I add another subnet?

like image 716
TJ1 Avatar asked Dec 10 '18 19:12

TJ1


Video Answer


3 Answers

You can add a Subnet in your Virtual Network but first need to create Address Space.

This can be done here - Virtual Network>Address Space>Add Additional Address Range>Save

Now you can use this new address space to create a Subnet.

Virtual Network>Subnet>Name, your new Address Range will be displayed here>OK

like image 198
Jay Avatar answered Nov 06 '22 12:11

Jay


There's a flaw in the page also. If the Add subnet blade is currently open, close/cancel it. Next, click in the IP Address Space field that you filled in, then click out of the field. Then create your subnet. Seems there is a problem with the field not saving before the Add Subnet blade opens.

like image 37
user14199300 Avatar answered Nov 06 '22 12:11

user14199300


this means your address space is exhausted or you are trying to add the wrong address space. go to the virtual network properties and check what address space it is using. if it is exhausted - you can add more address spaces to it (if you dont have peerings\vpn gateways)

like image 31
4c74356b41 Avatar answered Nov 06 '22 10:11

4c74356b41