Why I can't ping Azure VM from my local PC [cl

2019-02-23 09:37发布

问题:

I have a Windows VM on Azure and I don't understand why my ping times out. I found a probable reason: on Azure portal I see public IP "40.127.163.20", but inside VM when I do ipconfig I see different IP that is strange.

Do you have any ideas?

回答1:

ICMP protocol is not permitted through the Azure load balancer (inbound or outbound) which means that you can't do a simple ping to your VM. There is a : user voice request for this to be enabled here.

This blog here describes how you can use a port ping as an alternative.

There is some documentation on how to set up an Instance Level IP, which would circumnavigate the load balancer and give direct communication to the Virtual Machine, but I haven't tried this approach (I'm giving it a go right now, will report back)