I accidentally run "netsh advfirewall reset" after that I couldnt connect azure machine. It should have left default ports open but it closed all of the ports and connections to the machine.
1-) I tried to create another machine and run PsExec but it gave the error;
PsExec v2.11 - Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals - www.sysinternals.com
Couldn't access 100.74.18.25:
The network path was not found.
Make sure that the default admin$ share is enabled on 100.74.18.25.
2-) I tried direct rdp from that machine - not worked
3-) I tried to ping internally from that machine - no answer
4-) I tried to use ssl cert to use ps commands but the error was;
Enter-PSSession : Connecting to remote server progeekjira 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
+ Enter-PSSession -ComputerName progeekjira -Port 5986 -Credential *** -Use ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (progeekjira:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Basically all network connections are gone but vm seems working from the portal. I have many live systems on that machine please help me.
Edit: I tried Azure Power shell;
-added azure account
-getazure vm ok
-netsh advfirewall set allprofiles state off ok
-netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
3 rules updated
ok
but still I couldnt connect. Please help me.
Edit2: I tried to run Get-NetFirewallProfile | Set-NetFirewallProfile –Enabled False
it needed the Import-Module NetSecurity but that command gives an error at line 300 char 9? I am running Get-Module -ListAvailable it lists netsecurity module. but cant load. so still has no solution :(