An RDP connection to the Azure RemoteApp custom VM fails with the following error: “No Remote Desktop License Servers available”
A while ago I was setting up Azure RemoteApp at a client. After creating the custom image, I was unable to connect to the newly created Azure IaaS virtual machine (VM) with RDP. The below Remote Desktop Connection error popped up:
The error is caused because the 120-day licensing grace period for the Remote Desktop Server role has expired and you need to install licenses. Which in my opinion is really strange because it’s a new VM created from the Windows Server RDSHwO365P image available at the Azure Marketplace. This being said below you can found out how I finally was able to connect to the VM with RDP.
1) First of all, save a local copy of the RDP file from the Azure portal. I saved it under the C:\Temp folder on my laptop
2) Open Windows PowerShell ISE as an Administrator and run the following PowerShell command prompt to connect. This command will disable licensing for just that connection (change AZUTST by your own RDP file name):
## Disable RDP licensing
mstsc C:\Users\wimma\Downloads\AZUTST.rdp /admin
Be aware that only 2 connections are possible at the same time when using /admin.
3) Like you can see below, by using /admin I was able to connect to the VM
This concludes this blog post, hope it helps!
Wim Matthyssen (@wmatthyssen)