VM is not accessible from the whitelisted IP Address

Thayumanaswamy, Naresh 0 Reputation points
2024-04-25T05:59:18.6433333+00:00

Hi Team, I have tried to connect one vm from whitelisted IP Address but its connecting from yesterday and which was working earlier.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,243 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,194 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 48,006 Reputation points Microsoft Employee
    2024-04-26T10:28:56.83+00:00

    Hello @Thayumanaswamy, Naresh ,

    I understand that you are trying to connect to an Azure Virtual machine from a whitelisted IP address but it's not connecting since yesterday. And this was working fine earlier.

    To connect to an Azure VM from Internet, you would need to allow the access from the NSG (Network Security Group) which can either be associated to the VM's NIC or the VM's subnet.

    Network security group is used to filter inbound and outbound network traffic to and from Azure resources in an Azure virtual network.

    Network security groups contain security rules that filter network traffic by IP address, port, and protocol. When a network security group is associated with a subnet, security rules are applied to resources deployed in that subnet.

    Refer the below document which describes how to connect, via SSH, to a VM that has a public IP and also shows the exact NSG rule that you need to add:

    https://learn.microsoft.com/en-us/azure/virtual-machines/linux-vm-connect?tabs=Linux

    To learn more about NSG (Network Security Group), you can refer the below documents:

    https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview

    https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works

    Additional troubleshooting documents that you may refer:

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-troubleshoot-connectivity-problem-between-vms

    https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-vm-connectivity

    SSH related troubleshooting documents:

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/detailed-troubleshoot-ssh-connection

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/troubleshoot-ssh-connection

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments