2 Different VMS are in different virtual network

sns 9,226 Reputation points
2022-08-13T05:01:57.617+00:00

2 Different VMS are in different virtual network, These Virtual are networks got created in the backend when I created the VM
I want to bring these 2 vms in to one network. Please suggest how to achieve this.

VM1 - IP is - 10.3.0.4
VM2 - IP is - 10.4.0.4

I want to bring VM2 in to VM1 IP network. Please suggest

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,198 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 98,621 Reputation points MVP
    2022-08-13T10:25:58.377+00:00

    Hi @sns ,

    follow these steps to create a VM based on an existing managed disk:

    • Navigate to Disks in the Azure Portal
    • Find the OS Disk of the deleted VM (enter the name of the VM in the filter)

    230833-image.png

    The Owner property of the disk should be -

    • Click on the disk
    • Select Create VM

    230858-image.png

    • Follow the Create a virtual machine wizard and select the Virtual Network and Subnet you want the VM connected to.

    ----------

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

    Regards
    Andreas Baumgarten


7 additional answers

Sort by: Most helpful
  1. Andreas Baumgarten 98,621 Reputation points MVP
    2022-08-13T11:20:17.993+00:00

    Hi @sns ,

    you need to sort out your DNS settings.
    If you want to join the VMTWO in your domain it is required that VMTWO is able to resolve the AD domain name to "find" a related Domain Controller.
    Pinging the AD domain name should resolve to the IP of an AD domain controller. Otherwise you can't join VMTWO in your AD.
    Which DNS settings are configured on the VNets (the old and the one you are using now) and the VMs?
    Are you running your own DNS Server on the domain controller(s)?
    Before you changed the vNet/Subnet you were able to join the VMTWO to the AD domain?

    ----------

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

    Regards
    Andreas Baumgarten


  2. Andreas Baumgarten 98,621 Reputation points MVP
    2022-08-13T12:30:03.74+00:00

    Hi @sns ,

    I would add a forwarder in the AD DNS server to the Azure DNS Server (168.63.129.16) to resolve names in the internet.
    https://technogecko.net/msft/how-to-add-dns-forwarders-in-windows-server-dns/

    In the next step add the IP of the AD DNS Server(s) on your vNet as DNS Server(s):

    230860-image.png

    ----------

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

    Regards
    Andreas Baumgarten


  3. Andreas Baumgarten 98,621 Reputation points MVP
    2022-08-13T14:39:41.193+00:00

    Hi @sns ,

    did you restart of the VMs after you changed the DNS Server of the vNet?

    Please try a nslookup snstelangana.com on both VMs.
    The output on both VMs should be the same.

    ----------

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

    Regards
    Andreas Baumgarten