为什么我无法从我的本地 PC ping Azure VM

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

我在 Azure 上有一个 Windows 虚拟机,但我不明白为什么我的 ping 超时 。 我发现了一个可能的原因:在 Azure 门户上我看到 public IP“40.127.163.20”,但是当我在 VM 中执行 ipconfig 时我看到不同的 IP,这很奇怪。

你有什么想法吗?

ICMP 协议不允许通过 Azure 负载均衡器(入站或出站),这意味着您无法对 VM 执行简单的 ping。有一个:user voice request for this to be enabled here.

This blog here 描述了如何使用端口 ping 作为替代方法。

some documentation on how to set up an Instance Level IP,它可以绕过负载均衡器并直接与虚拟机通信,但我还没有尝试过这种方法(我现在正在试一试,会回来报告)