Connect two Subscriptions from the same account

DMC 21 Reputation points
2020-08-31T20:56:43.673+00:00

I have a dev/test and a pay as you go subscription and I would like to access both from the site to site VPN already setup in the dev/test subscription.

What is the most simple way of doing this?

Thx,

DMC

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,389 questions
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,159 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 47,676 Reputation points Microsoft Employee
    2020-09-01T04:11:30.403+00:00

    Hello @DMC ,

    You can create Vnet peering between both the virtual networks existing in different subscriptions (which may belong to same/different Azure Active Directory (Azure AD) tenants), provided the virtual networks you peer must have non-overlapping IP address spaces.
    Please refer : https://learn.microsoft.com/en-us/azure/virtual-network/create-peering-different-subscriptions

    To know more about the requirements and constraints of Vnet peering, please refer : https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering#requirements-and-constraints

    If you would like to access both the Azure Vnets (deployed in different subscriptions) from your On-premises via the Site to site VPN post Vnet peering configuration, you can do so by configuring gateway transit for virtual network peering. Gateway transit is a peering property that enables one virtual network to utilize the VPN gateway in the peered virtual network for cross-premises or VNet-to-VNet connectivity.
    For more information, please refer : https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-peering-gateway-transit

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. Stephane Budo 426 Reputation points
    2020-09-01T03:21:56.81+00:00

    Hi,

    The easiest way would be to create a peering between the two VNets.
    This would of course only work if the VNets does not conflict from an IP subnet perspective.

    Here is a link to the overview of the service as well as how to set it up:
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview

    Hope this helps,
    Stephane

    0 comments No comments