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
Hi Michael,
Is there a way to define the username in the command?
Hi
What username are you referring to? There is no username to be defined in the string.
Pls look at this official reference documentation, maybe this helps you answer your question.
https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/get-azurermremotedesktopfile?view=azurermps-3.8.0
Br
Michael