Following up on Can't open Azure VM Port and https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal
Is it possible to open icmp port for ping using azure cli, like az vm open-port or something?
CodePudding user response:
Is it possible to open icmp port for
pingusing azure cli, likeaz vm open-port?
Azure NSG now supports ICMP protocol and allows ping to a VM as we can see in the below screenshot from the document here.

But az vm open-port command do not have a parameter to pass ICMP protocol, refer this.
You could use az network nsg rule create command to allow ICMP on a VM as mentioned here.
