Improve this page

Back to Azure Bicep templates index <–

A network security group (NSG) includes rules that allow or deny traffic to a virtual network subnet, network interface, or both.

Template Locations

Online documentation

Template reference
Service description

Requirements

Input values

Output values

Additional information

A network security group (NSG) includes rules that allow or deny traffic to a virtual network subnet, network interface, or both based on the priority of the rule.

A network security group contains several default security rules that allow or deny traffic to or from resources. A network security group can be associated to a network interface, the subnet the network interface is in, or both. Best practices require that a subnet be associated with a Network Security Group.

Security