Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

RemotePowershellHttp does not Work (Error 404)

$
0
0

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=5985
Enable-WSManCredSSP –Role Server –force

Set-ExecutionPolicy remotesigned -force

And i only get error 404 when accessing http://<azurevm>.cloudapp.net:5985

Any ideas?

Br,

Victor


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>