public IP of the VM is not pinging

Arunkumar Venkatesan 125 Reputation points
2024-03-04T08:13:56.2933333+00:00

Hi,

I have created the public IP for my VM. And when I ping that IP, it is not pinging.

Please assist.

User's image

Arun.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,017 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 124.9K Reputation points Volunteer Moderator
    2024-03-04T08:29:48.73+00:00

    Hi Arun,

    In the Network Security Group that applies to the VM, did you create inbound port rule that Allow ICMP? If not, please navigate to the VM in the portal, Network settings blade, and click Create port rule - Inbound port rule button. Select ICMP and click Save.

    Inside of the VM, did you enable ICMP Echo in the firewall? For windows, you would open wf.msc and right-click on Inbound rule File and Printer Sharing (Echo Request - ICMPv4-In) and choose Enable Rule.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    4 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2024-03-04T08:24:47.12+00:00

    Hello Arunkumar Venkatesan

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    By default, outbound ICMP traffic is blocked on Azure virtual machines (VMs). In windows vm you have to allow inbound firewall ICMP port or disable firewall.

    • Configure the Network Security Group (NSG) to allow ICMP traffic
    • Set up the operating system to answer to Ping/ICMP echo request, configure the Windows Firewall.

    Ref to below links for similar issues reported and few blogs:

    https://www.thomasmaurer.ch/2019/09/how-to-enable-ping-icmp-echo-on-an-azure-vm/

    https://learn.microsoft.com/en-us/answers/questions/1142252/icmp-outbound-on-azure-virtual-machines

    https://techcommunity.microsoft.com/t5/azure/how-to-enable-ping-icmp-echo-on-an-azure-vm/m-p/858351

    Hope this helps.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.