To manage a Windows Azure remotely using powershell, first of all, enable Powershell Remoting via portal
Once the VM is provisioned, you see an additional endpoint is created
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)
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
Here is how you can specify a certificate for remote communication when powershell remoting
沒有留言:
張貼留言