I don't have an internet connection on a VM

MAYRA VASQUEZ 0 Reputation points
2023-06-20T15:42:09.3633333+00:00

I have created a VM but I do not have access to the internet from that machine, but the other machines that are in the same resource group can access the internet.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,041 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-06-20T16:56:58.69+00:00

    Hi Mayra

    This behavior is not common

    Try checking NSG, Routing tables, and DNS

    If an NSG rule is blocking internet access, this could be the issue. Check for any NSG that might be associated with the Subnet or the VM Network Interface Card (NIC) and make sure there are rules to allow outbound traffic

    It is possible to have an NSG at the subnet level and another at the network card (NIC) level at the same time, and the most restrictive rule will prevail.

    You can go to Network Watcher, Effective security Rules and find out you NSG associated

    User's image

    DNS

    if you have set up custom DNS settings or if the VM is peered with another network. Check the DNS settings to make sure they're correct.

    You can go to NIC and DNS servers:

    User's image

    Routing tables:

    Routing tables:

    If there's a custom route table, it could be directing traffic in a way that prevents internet access.

    You can looking for default route on effective routes on NIC configuration:
    User's image

    OS level:

    The issue could also be with the operating system's firewall or DNS settings. For example, the Windows firewall might be blocking outbound traffic, or the DNS settings might be misconfigured. Check the operating system's network settings and firewall rules.

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.