NSG on every VM

NT 26 Reputation points
2020-10-13T11:29:12.38+00:00

Hi all,

We have very big issue with performance in azure. Guy who designed our environment has installed 10 VM and created new NSG for every VM. Now we have 10 different NSG's. Is this best practice to have multiple or it is better to have one?

Problem we have is that it takes ages to open regular word or excel file and copy/paste files between VM take ages. Is there anything we can do to troubleshoot this? Please help

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,987 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,503 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. ChristopherW-MSFT 1,681 Reputation points
    2020-10-13T23:51:10.967+00:00

    Hi @NT

    We typically suggest that you setup a Network Security Group inside the shared Subnet of the Virtual Machines and set all of their base rules there. If you need additional and specialized rules for individual Virtual Machines, then you can append another Network Security Group onto the VM itself with that specialized rule. This NSG organization does not require specific setup or organization from the Resource Group, only the Subnet.

    Unknowingly adding an NSG to the VM and the Subnet can cause conflict, as both of these Security Groups will collapse their rules to apply all to the Virtual Machine.

    This doc on NSG setup has a nice diagram and some additional information that may help: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works

    2 people found this answer helpful.
    0 comments No comments

  2. Romaine Ewart 1 Reputation point
    2020-10-13T19:21:22.9+00:00

    HI NT-8243,

    I am not a professional on this as yet but from what i have learned is that if these VM's are in the same resource group then you only need 1 NSG unless you have reason for more than one.

    Believe the rule of thumb is 1 NSG per Resource group.

    Hope this helps.

    0 comments No comments

  3. Kasun Rajapakse 431 Reputation points
    2020-10-14T05:52:31.377+00:00
    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.