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

Remote powershell to Non-domain VM in ARM

$
0
0

So,

I am playing with resource groups, I have created a vm in one, Vm network all nicely set up in the resource group in the new portal. Then I find out I cannot Point-Site VPN to this network yet as its not supported. So fuck it, I spin up the server 2016 VM anyway. I go to security group that the VM is hooked up to and throw in an inbound on port 5986 and 5985. Then on my home machine

enter-pssession -computername publicipofvm -port 5986 -credential (get-credential)

and i get the following

Enter-PSSession : Connecting to remote server publicvmip failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1

If i do enter-pssession on the vm itself via hitting it via RDP and a local console and looping it back to localhost that works, so the vm has everthing on that needs to be on. Seems to be azure blocking something somwhere.

Any Ideas?

To aid the process I dropped the firewall on the VM and also put in wildcard trusted host on both ends


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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