Feb 14 2022 04:08 AM
Hi All,
Our organization is using Azure Lab Services and, we are seeking advice on a problem we are facing.
The problem happens when students mistakenly modify the connection of their Lab machine. Understandably, changing the IP setting makes the RDP string obsolete. After that, the VM takes like 45 minutes to start (sometimes it fails and stops immediately) and, if it starts, the remote desktop is not possible.
Of course, we can reset the bad VM but, that is not convenient because they will lose all their work.
My questions are:
Regards,
Masih
Feb 14 2022 10:58 AM
Feb 14 2022 11:22 AM - edited Mar 09 2022 12:34 AM
Hi Elizabeth,
Our lab exercises involve IP, DNS, and DHCP configuration. We use nested virtualization with Hyper-V.
However, sometimes, students don't release which machine they are working on and run the configurations on their Azure lab machine and that breaks things.
Your solution suggested we "reset the private IP back to what ALS expects". That partially works. Sometimes students don't know the new Private IP that they have assigned, which makes the Remote Desktop connection using the Private IP impossible.
I'm using this module to see the lab information. I'm wondering if any of the parameters below could be used to access the virtual machine?
Another question is, why Lab Services' virtual machines don't show with regular Get-AzVm command?
There is also no network information, why is that?
I assume these are by design and for security reasons, but could someone please confirm if there is no way around this?
Regards,
Masih
Mar 09 2022 10:52 AM
My apologies for the delayed response.
After a student VM is reset, they should be able to connect using the 'connect' button. (The connect button uses the public IP address.) If this is not the case, then this is a product issue I should log with the team.
There are two ways to get the private IP address of a student VM if you want. The Azure Lab Services virtual machine pool page shows private IP addresses for student VMs. (Export list of VMs in Azure Lab Services | Microsoft Docs) The other option is to use the PowerShell module you referred to. The cmdlet that will show rdp info and private IP address is 'Get-AzLabStudentVM'.
Get-AzLabAccount -ResourceGroupName MyResourceGroup -LabAccountName MyLabAccount | Get-AzLab -LabName MyLab | Get-AzLabStudentVm
Does that help? Please let me know if you are still having issues.
Thanks,
Elizabeth
Mar 09 2022 01:18 PM
Mar 14 2022 12:55 PM
SolutionThere aren't any options for you to fix this as you don't have access to the underlying Azure resources (vms, etc). You could create a support ticket to see if the engineering team has any options to help you out.