Get the command from How to Disable Windows Firewall With Command Line - TechWiser
netsh advfirewall set allprofiles state off
Open Azure Click on your Virtual Machine Click Run Command
Paste the command in the box and click run