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

TJ1 picture TJ1 · Dec 10, 2018 · Viewed 8.6k times · Source

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?

Answer

Jayesh Tiwari picture Jayesh Tiwari · Dec 13, 2019

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