Not able to see Virtaul machine when trying to associate NSG

sns 8,536 Reputation points

I have navigated to NSG which I have created and created inbound rule. now I want to associate this NSG to particular VM but it is not showing my Virtual machines in the list. Please suggest

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.
1,394 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Roderick Bant 2,031 Reputation points

    Is the NSG located in the same subscription and region as the VM/NIC? They should be in order to associate the NSG with the NIC

  2. Cristian SPIRIDON 4,301 Reputation points


    It is possible to be a compatibility issue.

    Are the VMs/vnet/nic created some time ago or not in the portal?

    You can try the other way around - go to your existing resource and try to create the NSG from there. Maybe it will force the correct version.

    Hope this helps!

    0 comments No comments