Azure lab services VM losing connection

flk2023-7225 25 Reputation points
2023-03-21T21:17:20.01+00:00

I'm new to Azure and I'm trying to change the DNS IP (in the TCP/IPv4 properties) of the Lab services VM to our Domain Controller VM's IP in Azure.

The Domain Controller VM resides in Azure but outside of the Azure Lab services environment but has connectivity to/from the Azure lab services.

When I RPP into the Lab services VM from the Virtual machine pool and change its DNS IP to point to the Domain Controller VM's IP, the connection is immediately lost to the Lab services VM. Then I can no longer RDP to it. The only way to get the connection back is to reset the VM. Then I'm back to the original state and I still need to change the DNS IP.

I normally RDP into the Lab services VM by using the DNS name from the Remote deskstop information section of the Lab services VM Ex) ...cloudapp.azure.com:7001

Is there a way for me to still RDP to the Lab services VM after changing its DNS IP?

By assigning a public IP to the Lab services VM perhaps? If it is possible, where/how would I go about doing that?

TIA

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
278 questions
{count} votes

Accepted answer
  1. Peter Hauge (MSFT) 80 Reputation points Microsoft Employee
    2023-03-23T18:51:05.1433333+00:00

    Hi - I work with the product team and wanted to learn more about what you're trying to accomplish (that way we can give the best guidance on how to get there). Are you using Lab Accounts or Lab Plans? Also, are you attempting to domain-join the student virtual machines? I'm just wondering the reason to use DNS this way?

    Thanks!

    Pete [msft]


3 additional answers

Sort by: Most helpful
  1. Ayomide Oluwaga 941 Reputation points
    2023-03-21T21:43:25.7066667+00:00

    Yes, it is possible to assign a public IP address to your Azure Lab services VM. To assign a public IP address to the VM, follow these steps:

    1. Go to the Azure portal (https://portal.azure.com/).
    2. Navigate to the virtual machine you want to assign a public IP address to.
    3. Click on the "Networking" tab in the virtual machine blade.
    4. Click on "Add inbound port rule" and add a rule to allow RDP traffic (port 3389) from your IP address.
    5. Click on "Add public IP address" and select "Create New" to create a new public IP address resource.
    6. Fill in the required information for the new public IP address, including the DNS name label.
    7. Once the public IP address is created, select it in the "Networking" tab and click on "Associate" to associate it with the virtual machine.
    8. You should now be able to RDP to the VM using the public IP address.

    Note that assigning a public IP address to your VM will incur additional costs. Also, make sure to configure the firewall on the VM to allow RDP traffic from your IP address.

    0 comments No comments

  2. flk2023-7225 25 Reputation points
    2023-03-21T23:14:49.0166667+00:00

    When I go to the Azure portal (https://portal.azure.com/), the VMs from the Azure Lab services do not show up as a virtual machine.

    I can see them under "connected devices" when I go to "Virtual Networks" > virtual network the lab services belongs to > connected devices but it doesn't give me the option to assign a public IP address.

    They show up as

    vmss-user (instance 2)

    vmss-user (instance 3)

    vmss-user (instance 4) and so on

    The VMs created on the Azure portal show up fine and I'm able to assign public IPs to them but not the VMs created on the Azure Lab services.


  3. Masih Shekarak 20 Reputation points
    2023-03-24T22:58:50.1166667+00:00

    @flk2023-7225

    Are you sure the answer you chose as the correct answer, provide the best answer to A) why you lost connection to your lab machines when you change the DNS server IP address and B) how can you domain join your lab?

    0 comments No comments