NSG - Multiple subnets or networks

MezarZakarya-9086 21 Reputation points
2022-05-28T08:56:15.817+00:00

Good day

Can we associate one NSG with multiple subnets at the same time?
Can we associate one NSG only at the Network level? so all subnets would have the same NSG inherited from the network level?
Can we associate one NSG with multiple networks ?

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

2 answers

Sort by: Most helpful
  1. Luis Rodriguez 6,226 Reputation points Microsoft Employee
    2022-05-28T10:49:52.933+00:00

    Hello @MezarZakarya-9086

    Welcome to Microsoft Q&A Platform,

    NSGs can be associated to network interface or subnet level, not the entire vnet.
    You can use the same NSG with several network interfaces or subnets.
    For reference: https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works

    I hope this helps!

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.
    0 comments No comments

  2. Slim ABDELHEDI 1 Reputation point
    2022-05-28T09:21:39.95+00:00

    Bonjour,
    les groupes de sécurité réseau NSG peuvent être associés à des sous-réseaux ou à des interfaces réseau individuelles.
    Lorsqu’un NSG est associé à un sous-réseau, les règles s’appliquent à toutes les ressources connectées au sous-réseau. Le trafic peut être limité davantage en associant aussi un groupe NSG à des interfaces réseau individuelles au sein d’un sous-réseau qui a déjà un groupe NSG associé.
    Réf:
    https://learn.microsoft.com/fr-fr/azure/site-recovery/concepts-network-security-group-with-site-recovery

    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.