We’ve recently had a couple of issues connecting to Azure Windows VM’s after a reboot, boot diagnostics was showing that VM’s has booted and Windows was waiting at the login screen.
However, the VM wasn’t responding to pings and we couldn’t connect to with RDP or WinRM.
We tried using the Azure (IaaS) diagnostics, but that was trying to use WinRM to connect to the VM so it also failed.
Suspecting the issue was Windows Firewall, we carried out the following:
- Deleted the VM (keeping the disks!!!)
- Attached the OS disk to another VM running the same OS
- Used regedit to load the system hive from the failed VM
- Set the following registry keys
CurrentControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\EnableFirewall=0 (DWORD data type)
CurrentControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\EnableFirewall=0 (DWORD data type)
- Detach the disk from the second VM
- Re-create the original failed VM, using the existing disks