question

EnriqueV-4546 avatar image
0 Votes"
EnriqueV-4546 asked ricardosolisvillegas-4678 commented

Connect 2 virtual machines in different countries through Azure cloud

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-virtual-networkazure-vpn-gatewayazure-bastion
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ricardosolisvillegas-4678 avatar image
0 Votes"
ricardosolisvillegas-4678 answered ricardosolisvillegas-4678 commented

Hello @EnriqueV-4546

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://docs.microsoft.com/en-us/azure/virtual-wan/virtual-wan-global-transit-network-architecture

BR,

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for pointing me in the right direction.

I forgot to mention in my question but the 2 virtual machines I want to talk to each other are on premise, one in North America and the other in Asia.
Following your link, I was able to configure a Virtual Wan with 2 hubs, one for each region. Then I configured P2S for each hub and finally I had each client connect to his respective hub.

This works; as in I can ping from one VM to the other when they each connect to their respective hub.
i.e. Client A connected to HUB A, Client B connected to HUB B, HUB A and HUB B are in the same Virtual WAN, and I can ping Client A to B and Client B to Client A.

Now for some reason SMB doesn't seem to work between these machines, is there supposed to be a firewall or something in the WAN or HUBS? I did not see it mentioned anywhere during my deployment. Why would ping work but not SMB?

Do you know if I am missing something? Maybe I should open a new question?

Thank you

0 Votes 0 ·

Your welcome!

I am glad to know you were taken to the right direction.

Now here are my 2 cents on this new concern....

https://docs.microsoft.com/en-us/azure/storage/files/storage-files-networking-overview

Many thanks : )

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @EnriqueV-4546 ,

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://docs.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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.