How to ping an Azure VM - Disable ICMP

preview_player
Показать описание
TechKnowledge - Tushar's Vlog Channel Link

How to ping an Azure VM?
How to allow ICMP protocol on Azure VM
Allow ping from Azure Portal

Allow ping from PowerShell command

$RGname="Test"
$protocol="ICMP"
$rulename="Allow-ICMP"
$nsgname="Testvm1-nsg"

# Get the NSG resource
$nsg = Get-AzNetworkSecurityGroup -Name $nsgname -ResourceGroupName $RGname

# Add the inbound security rule.
$nsg | Add-AzNetworkSecurityRuleConfig -Name $rulename -Description "Allow App Protocol" -Access Allow `
-Protocol $protocol -Direction Inbound -Priority 3891 -SourceAddressPrefix "*" -SourcePortRange * `
-DestinationAddressPrefix * -DestinationPortRange *
# Update the NSG.
$nsg | Set-AzNetworkSecurityGroup
Комментарии
Автор

Running this command in the VM made it work for me:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8, any dir=in action=allow

EchoesEmbrace
Автор

thanks for save me!
I had been tried to resolve error in my kubespray k8s cluster since 10 days.

error reason:- I have 3 vm but I didn't configure inbound rule .

thanks man😊

rajatkumar
Автор

It did not work for me. I do not know why

abiodunibrahim
Автор

Worked yesterday. Doesn't work anymore. Lovely.

alexhamilton
Автор

how to ping private ip of azure vm with on premise server

saurabhsharma