Connect 2 virtual machines in different countries through Azure cloud

EnriqueV 21 Reputation points
2022-04-21T03:20:25.833+00:00

I want to connect 2 virtual machines, one is in North America and the other one in Asia.

When I say I want to connect 2 virtual machines, it is simply that once this connection is established, they can talk to each other by IP and connect/talk to each other as if in the same network. Only these 2 machines will talk to each other.

I would like this connection to pass through the Azure cloud as such:

  • Machine in North America will connect to the Azure cloud in North America.
  • Machine in Asia will connect to the Azure could in Asia.
  • Data between North America and Asia will be Azure cloud to Azure cloud only.

I have read on bastion, gateway and other Azure network offerings but I am not certain of what I need to actually make this happen. I feel a bit overwhelmed with all the products Azure offers and I am not sure what I should be using to do what I need.

Thank you

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 Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
242 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,167 questions
0 comments No comments
{count} votes

Accepted answer
  1. risolis 8,701 Reputation points
    2022-04-21T03:39:26.82+00:00

    Hello @EnriqueV

    Thank you for your post!

    I know there are multiple products that can overwhelm you when you choosing the accurate solution. I would like to give you the following article that might fit in your scenario:

    Global transit network architecture and Virtual WAN
    https://learn.microsoft.com/en-us/azure/virtual-wan/virtual-wan-global-transit-network-architecture

    BR,


1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 97,396 Reputation points MVP
    2022-04-21T14:51:25.783+00:00

    Hi @EnriqueV ,

    the easiest way is to connect the two vNets containing the VMs using the global vNet peering.
    Please take a look here: https://azure.microsoft.com/de-de/blog/global-vnet-peering-now-generally-available/
    If there are more than the 2 mentioned VMs in the subnets you can use Network Security Groups to control/limit the communication between the 2 vNets.
    https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments