NSG-Can i assigned 1 NSG to multiple Instance , what is the limit

Mahendra Sahu 0 Reputation points
2023-08-28T01:37:35.47+00:00

HI,

I want to use same NSG on all my Virtual Machine , need to understand if that is possible and do we have any limitation or drawback of doing that

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

2 answers

Sort by: Most helpful
  1. TP 89,011 Reputation points
    2023-08-28T02:11:47.6133333+00:00

    Hi,

    Yes, you can associate same NSG for multiple network interfaces and/or subnets. The network interfaces/subnets must be in the same Azure Region. So one drawback is if you need same NSG to apply to VMs in different regions you can't do that.

    Please click Accept Answer if the above was helpful.

    Thanks.

    -TP


  2. Dillon Silzer 57,231 Reputation points
    2023-08-29T03:33:06.2366667+00:00

    Just adding to TP, here is a guide (if you were looking for reusing NSGs):

    Reusing Network Service Groups across Virtual Machines

    https://microsoft.github.io/AzureTipsAndTricks/blog/tip215.html

    Just a note from the article:

    Network Security Groups is an important feature in Azure Virtual Networking that allows you to filter traffic to and from Internet and across Azure resources. The intent of this article is to share a quick Azure tip but NSG shouldn't be used as a first line of defense to your Azure resources.


    If this is helpful please accept answer.

    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.