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
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
2 answers
Sort by: Most helpful
-
-
Cristian SPIRIDON 4,301 Reputation points
2022-11-19T05:54:32.5+00:00 Hi,
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!