how to establish connection between vm present in two diffrent regions and resource group on azure

Divyansh Kumar Singh 1 Reputation point
2022-09-20T06:48:21.487+00:00

suppose I have two vm which are present in two different resource groups and those resource groups are present in different regions i want to ssh from 1 vm to 2 vm

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,127 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,846 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
640 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. rafalzak 3,216 Reputation points
    2022-09-20T06:56:16.497+00:00

    Hi @Divyansh Kumar Singh ,

    If you have 2 different virtual network in each resource group, you need to use VNET Peering feature:
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview


  2. Limitless Technology 43,931 Reputation points
    2022-09-21T09:33:56.577+00:00

    Hi,

    Thank you for your question and reaching out.

    I understand that you' want to connect 2 VMs present in two different resource groups. First, you have to make sure to add connection between private clouds

    1. In your Azure VMware Solution private cloud, under Manage, select Connectivity.
    2. Select the AVS Interconnect tab and then Add.
    3. Select the information and Azure VMware Solution private cloud for the new connection.

    Note: You can only connect to private clouds in the same region. To connect to private clouds that are in different regions, use ExpressRoute Global Reach to connect your private clouds in the same way you connect your private cloud to your on-premises circuit.

    1. Select the I confirm checkbox acknowledging that there are no overlapping routed IP spaces in the two private clouds.
    2. Select Create. You can check the status of the connection creation.

    You'll see all of your connections under AVS Private Cloud.

    Once you have connected multiple private clouds in the same region, you may want to learn about:

    https://learn.microsoft.com/EN-us/azure/azure-vmware/move-azure-vmware-solution-across-regions
    https://learn.microsoft.com/EN-us/azure/azure-vmware/move-ea-csp-subscriptions

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

    If the reply was helpful, please don’t forget to Upvote or Accept as answer. Thank you!

    0 comments No comments