Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS Azure / Not able to ping VM

I have deployed a VM in Ms Azure and created a new "Allow ICMP" rule to allow ping to newly created VM on Azure portal.

I have also added a FW rule on VM to allow incoming ICMP traffic. I was able to ping VM from my local laptop after above 2 steps.

Now, For testing, I have updated FW rule on VM to deny incoming traffic, which has stopped ping from my local laptop.

Problem is,

Ping is not working after re-enabling FW rule on VM to allow incoming ICMP traffic.

Why this is the case here? Do I need to delete and re-create ICMP rule on Azure portal? OR Do I need to redeploy my VM?

like image 974
Abhay Desai Avatar asked Aug 30 '25 17:08

Abhay Desai


1 Answers

I tried the same in my environment created virtual machine and allowed ICMP Nsg like below:

enter image description here

Ping requests to the virtual machine is supported and the firewall rule can be modified to permit incoming ICMP traffic. However, sometimes modifications to firewall rules might not be immediately or correctly implemented.

When I ping, it shows the request timed out.

![enter image description here](https://i.imgur.com/knqRHcC.png)

Go to Remote desktop -> search bar, type Windows Firewall with Advanced Security -> inbound security -> Enabled ICMPv4 -> Apply and ok like below:

enter image description here

enter image description here

Enabled ICMP like below:

enter image description here

Now when I tried to ping, it pings successfully like below: enter image description here

I tried to deny incoming traffic and after re-enabling FW rule on VM to allow incoming ICMP traffic ping work successfully like below:

enter image description here

If still issue persists,

  • Check whether the rule is enabled and allowing traffic on the correct port so that the firewall rule setting on the virtual machine is set up properly to allow incoming ICMP traffic. Verify the rule is active and the modifications have been saved.
  • Ensure that NSG is associated with your VM to allow traffic. Make sure no conflicting or overriding rules that could be blocking the traffic. You can also try to disable and re-enable the rule or redeploy the VM.
like image 200
Imran Avatar answered Sep 02 '25 09:09

Imran