The Ping functionality on Windows Azure VM is blocked by default for security reasons, to be to enable them you can do that from the Windows firewall advanced features on each VM or you can login on the virtual machine and open the command prompt as an administrator and execute this command.


netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" dir=in action=allow enable=yes protocol=icmpv4:8,any
Comments (8)

  1. Jeremy says:

    Works great! Can now ping using PsPing utility version 2.01 (TCP) by specifying a public port. A regular ping still does not work.

    1. k.moussa says:

      Hi Jeremy, Thanks – yes you can use PsPing to ping azure machines from public internet if you open the public port that you are pinging in the NSG.

  2. Marcelo Santos says:

    Doesn't Work. This firewall rule could be work if the machine is not inside the Azure infrastructure. There is some sort of block or another firewall layer that is blocking the outside pings.

    1. k.moussa says:

      Hi Marcelo, yes it only works from inside the local network whether this is on Azure Vnet or through VPN site to site – if you want to ping Azure VMs from the internet , use PSping and open the port that you want to ping in the NSG.

  3. joem says:

    Unfortunately … I had nope it would but it didn't work

  4. k.moussa says:

    Thanks David , I adjusted it as per your comment 🙂

  5. David Burela says:

    FYI, you have smart quotes in the snippet.

    Doing a copy/paste directly into a command prompt causes it to fail due to invalid input

Skip to main content