Skip to content

How to make your Azure VMs pingable from outside Azure. (Azure tips #1)

I’m here again writing my second article, it’s a small tip but I think it’s crucial because almost everybody that ever worked in infrastructure used ping command to basic troubleshoot network connectivity, ping always comes on the fly when you want to make sure that your server is up and it’s connected to your network.

Unfortunately you can’t use ping command to ping your Azure VM’s public ip address, that’s because it’s disabled by the Azure firewall by default and according to what I’ve read this meant to secure azure from DDos attacks.

So, how can you make your Azure VMs pingable? it’s simple but it took me a while to figure it out :P, you just have to add an inbound rule to your VMs NSG that allows traffic on port 0.

NOTE: Make sure that your VM windows firewall is off or allowed the ICMP traffic

Now you can check your VMs connectivity from your PC 🙂

Just remember that you can use another options to check the connectivity like PsPing

https://docs.microsoft.com/en-us/sysinternals/downloads/psping

or instance level public IP (ILPIP)

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-instance-level-public-ip

Kindly Remember that this procedure might not be ideal from Security point of view, and it just for testing or troubleshooting scenarios.

Please let me know if you have any points to discuss or any comments.

Spread the love
Published inAzure TipsAzure VM

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *