简体   繁体   中英

az vm open-port icmp, is that possible?

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?

Is it possible to open icmp port for ping using azure cli, like az 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM