What is connectivity between 2 VMs

Anonymous
2025-04-02T17:18:09.24+00:00

What is it called to connect 2 VMs in azure which are either in same or different region. And I want to know how it works in azure.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vamsi Ram Annepu 915 Reputation points Microsoft External Staff Moderator
    2025-04-02T17:33:01.0833333+00:00

    Hi Richard,
    The specific terminology for establishing connection between a VM in one region and the other VM in same or another region is called Virtual network peering.
    User's image

    For more information refer to the link provided
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview
    Feel free to reach out for further queries.
    Hope the answer is useful, If the answer is helpful please "Accept answer" and "Upvote"

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Marcin Policht 49,715 Reputation points MVP Volunteer Moderator
    2025-04-02T17:31:55.7433333+00:00

    In Azure, connecting two Virtual Machines (VMs) can be done using different networking options depending on whether they are in the same region or different regions.

    1. Connecting VMs in the Same Region Method: Virtual Network (VNet) Peering

    • What it is:
      • VNet Peering connects two Azure Virtual Networks (VNets) within the same region.
      • It allows low-latency, high-bandwidth communication between VMs in different VNets.
      • The traffic stays inside the Azure backbone, ensuring security and speed.
    • How it works:
      • Both VMs must be in separate VNets.
      • You create a VNet Peering between the two VNets.
      • The VMs can then communicate using their private IP addresses.
      • No VPN or public IP is required.

    2. Connecting VMs in Different Regions Method: Global VNet Peering

    • What it is:
      • This is the same as VNet Peering but between VNets in different Azure regions.
      • Still provides a low-latency and secure connection.
      • Traffic remains within Microsoft’s private backbone (not over the public internet).
    • How it works:
      • You create a Global VNet Peering between VNets in different regions.
      • The VMs can communicate using their private IPs.
      • No need for VPN or Public IPs.

    Alternative: VPN Gateway

    • If VNet Peering is not possible (e.g., compliance reasons), you can use VPN Gateway (encrypted over the internet).

    Comparison: VNet Peering vs VPN Gateway

    Feature VNet Peering Global VNet Peering VPN Gateway
    Latency Very Low Low Higher
    Bandwidth High High Limited (based on SKU)
    Security Private Private Encrypted
    Cost Lower Higher (egress cost) Higher
    Use Case Same region Cross-region Hybrid cloud

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2025-04-02T17:38:23.6+00:00

    Thank you both for the answer as it has been a while since I last used Microsoft and forgot the names of features and hence this problem and I am trying to accept both answers but not able to.

    0 comments No comments

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.