Azure Local - How to enable RDP
For quite a while now Azure Local ships with Remote Desktop Protocol (RDP) disabled. Most of the operations are typically managed via PowerShell Remote (WinRM) sessions these days, but occasionally you still want to use RDP to connect to the Azure Local host.
There are plenty of ways to enable that in Windows Server, as it requires ports opening, registry changes, etc. All of which can be done via PowerShell and was already covered in many blogs and articles. The fun fact about Azure Local though is that it actually has a built-in way to enable RDP, which is what I am going to show you in this post.
Enable RDP on Azure Local via PowerShell
| |
| |
Disable RDP on Azure Local via PowerShell
| |
| |
How did we find it?
The cmdlet does not exist in a module that you can find in PowerShell Gallery or in the standard Windows Server modules. It is specific to Azure Local. It exists in its own module AzureStackOSConfigAgent.
Get the module name
| |
Get the module details
| |
Get other commands in this module
| |
Additional notes
- The
Enable-ASRemoteDesktopandDisable-ASRemoteDesktopcmdlets are specific to Azure Local and are not part of standard Windows Server RDP configuration, the cmdlets are in theAzureStackOSConfigAgentmodule. - These cmdlets handle all the necessary registry changes and firewall rule updates automatically.
- For security reasons make sure to disable RDP after you have finished your work.