RDP Azure VMs using a GUI Utility

In this blog, I will review a simple GUI utility based on PowerShell, which Automatically connects an Azure VMs via the public IP, even if the public IP is dynamic or changed from some reason.

Especially in test or lab environments where VMs are being built and removed occasionally, public IP addresses get changed and therefore you need to redownload the RDP configuration from Azure portal.

To eliminate the constant RDP configuration download, the RDP utility allows you simply click the VM without knowing the public IP address and connect with username and password that can be saved as an encrypted file.

In addition to the RDP utility, you will be able to get many details about the VM like: VM status (Running/Deallocated), Disk name, OS type, OS version, size, and location.
At the VM info summery tab, you also can turn on the VM in one click.

Script parameters:

The first part of the script contains 3 parameters that can be changed inside the script to adjust it to your needs and settings:

Running the script

Since the script based on PowerShell AZ module, verify that the AZ module is already installed on the machine.

The script includes 2 tab pages:

- VM Info Summary: This tab includes an information about the selected VM like VM status (Running/Deallocated), Disk name, OS type, OS version, size, and location, in addition you could turn on the VM in one click.

- RDP Connection: This tab allows you connect the selected VM using RDP if the VM has a public IP.

VM Summery tab:

In addition, the PowerShell console will display the current subscription context you are connected to:

RDP Connection tab:

The script

During the last 13 years, I'm working as a Senior Customer Succes Engineer (former PFE) at Microsoft. My areas of expertise are Exchange, Powershell & Azure.