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

Accepted answer
  1. Andreas Baumgarten 98,626 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: Newest
  1. Andreas Baumgarten 98,626 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


  2. Andreas Baumgarten 98,626 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,626 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


  4. Andreas Baumgarten 98,626 Reputation points MVP
    2022-08-13T11:05:27.957+00:00

    Hi @sns ,,

    please try to ping VMONE from VMTWO.
    please try to ping the domain name snstelangana.com from VMTWO
    In both cases you should get a positiv result.

    Verify the DNS settings of the "old" subnet/Vnet and the "other subnet/Vnet"
    Are both VMs in the same Subnet in the same vNet?

    ----------

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

    Regards
    Andreas Baumgarten