Can I have two VPC with same subnet (both VPC are in different project).

Diksha Singh 60 Reputation points
2023-08-23T07:00:05.5833333+00:00

Can I have two VPCs with the same subnet? (Note both VPC are in different projects).

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,714 questions
0 comments No comments
{count} votes

Accepted answer
  1. AirGordon 7,145 Reputation points
    2023-08-23T07:39:13.5166667+00:00

    (VPC is typically an AWS term. Azure uses Virtual Network, often shortened to vnet)

    You can have 2 Virtual Networks that contain 2 different subnets with the same name.

    You cannot have 2 Virtual Networks that share the same subnet. A subnet is a child resource to a Virtual Network, and the subnet can only have 1 parent.

    A typical design where two Virtual Networks need to be connected, is to use Virtual Network peering. This is where a connection is made between the two virtual networks.

    A more complex design would involve a hub-spoke architecture, where a central hub provides shared resources (firewall, on-prem connectivity, etc) as illustrated in the diagram below.

    Diagram of virtual network peering transit.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.