Adding multiple IP addresses to an NSG rule

Ram 25 Reputation points
2023-01-19T22:53:53.6966667+00:00

Hi, I can add multiple IP addresses to an NSG rule, but only the first two IP addresses work. For example, if I allow three IPs to be able to RDP into a server, I can RDP from the first two sources but not the third. I am not sure where I am going wrong. Any ideas?

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,509 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2023-01-20T08:42:44.8433333+00:00

    @Ram

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you are facing issues with NSG Rules and not able to RDP to Azure VM.

    I see you and @Andrew Schull had a discussion about this and Andrew has suggested to use Network Watcher to check the rules.

    I also see you have used the IP Flow verify feature of the Network Watcher.

    I suggested you use NSG Diagnostics feature of Network Watcher

    • The reason is that I am suspecting there could be two NSGs, one being associated to the VM's NIC and that is blocking the connection.
    • You were able to confirm that this was indeed the case and we have 2 NSGs in picture.

    It appears the second NSG, is supposed to belong to a server that was decommissioned.

    From your screenshot, I can see that the second NSG is associated with the subnet "default". I suppose this subnet is where the target VM resides.

    That's why, this is blocking the connection to the VM.

    If you believe that this is supposed to be a decommissioned resource, you can go ahead and delete this NSG.

    Cheers,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.