Firstly, to be able to run Remote PowerShell commands you will need to create rules on Azure and Windows Firewall that allow access to RM port.

Secondly, you must download and install powershell

And final, execute the following command,

Enter-PSSession -ComputerName 'demovm.cloudapp.net' -Port 63058 -Credential Microsoft\User  -UseSSL

 

Share This