Azure PowerShell Getting the Remote Desktop File

When you are on Go and Portal is not responding well, you might be in need to get the remote desktop file of a Virtual machine

Step 1: Login to Azure

> Add-AzureAccount

Point to the right subscription

> Select-AzureSubscription -SubscriptionName "Your Subscription Name"

Step 2: Then get the list of Virtual machines

> Get-AzureVM (this is to know the name of the service)

Step 3: Download the file to local repository

> Get-AzureRemoteDesktopFile -Name VMName -ServiceName CloudServiceName -LocalPath "C:\Azure\WGDC.rdp"

Then just type the path, the Remote Desktop prompt will appear.

Namoskar!!!