I have set up a domain controller server on Azure with Windows Server 2016. Now I want to connect to this server using PSSession.
WinRM is enabled, all firewall rules are ok, inbound rules on Azure network security group too, but I can't connect to the server.
Enter-PSSession : Connecting to remote server a.b.c.d 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.
I can connect to this server using RDP only, but no success with WinRM.