Get RDP for ARM VM with PowerShell 1.0 – One Liner

Subtle differences but still worth mentioning.

In this previous post I wanted to ease the number of clicks you have to take before getting to the RDP download, also how to get all RDP files to RDCM 2.7

How do i RDP for ARM VM with PowerShell 1.0?

Launch RDP for VM in a cloud service: Get–AzureRemoteDesktopFile –ServiceName “myservice”–Name “VM name” –Launch

Launch RDP for VM in a Resource Group: Get-AzureRmRemoteDesktopFile -ResourceGroupName “myresource” -Name “VM Name” -Launch

If you want to download the RDP use these commands, remember to name the rdpfile or you will get the access denied error.

Download the RDP file for a VM in a cloud service: Get–AzureRemoteDesktopFile –ServiceName “myservice”–Name “VM name” –LocalPath D:\location\filename.rdp

Launch RDP for VM in a Resource Group: Get-AzureRmRemoteDesktopFile -ResourceGroupName “myresource” -Name “VM Name” – LocalPath D:\location\filename.rdp

Now I am hoping Stuart Leeks will review his great script so we can get the RDCM config file for VMs in a Resource Group J

2 thoughts on “Get RDP for ARM VM with PowerShell 1.0 – One Liner

Leave a Comment