2013年6月3日

[Azure]Powershell Remoting

To manage a Windows Azure remotely using powershell, first of all, enable Powershell Remoting via portal

image

Once the VM is provisioned, you see an additional endpoint is created

image

An Easy way is to skip CA check,

Open Windows Powershell with Administrator Privilege and enter the following scripts

$pssessionOption = New-PSSessionOption –SkipCACheck

$cred=Get-Credential

(This brings a pop window to input network credential)

image

new-pssession -computername [vmname].cloudapp.net -credential $cred -UseSSL -SessionOption $pssessionOption -Port <Public_PORT>

You’ll see the following messages once you successfully created a remote session

image

 

Here is how you can specify a certificate for remote communication when powershell remoting

沒有留言:

Blog Archive

About Me