Hi Everyone,
I've been trying to set up remote powershell through http towards a server i have in Azure.
This is what i've done.
New-AzureVMConfig -Name $name -InstanceSize $size -ImageName $img | `Add-AzureEndpoint -Name "RemotePowershellHttp" -Protocol tcp -LocalPort 5985 -PublicPort 5985 | `Add-AzureProvisioningConfig -Windows -AdminUsername $username -Password $passwd -EnableWinRMHttp -DisableAutomaticUpdates | New-AzureVM -ServiceName $svc -AffinityGroup $affi -VNetName $vnet -ErrorAction Stop;
When server is up and running ill perform the following commands on the remote machine:
Enable-PSRemoting –force;netsh advfirewall firewall add rule name="Remote Powershell HTTP" dir=in action=allow protocol=TCP localport=5985Enable-WSManCredSSP –Role Server –forceSet-ExecutionPolicy remotesigned -force
And i only get error 404 when accessing http://<azurevm>.cloudapp.net:5985
Any ideas?
Br,
Victor