Skip to content

Use valid NSG names#

Operational Excellence · Network Security Group · Azure.NSG.Name

Network Security Group (NSG) names should meet naming requirements.


When naming Azure resources, resource names must meet service requirements. The requirements for Network Security Group names are:

  • Between 1 and 80 characters long.
  • Alphanumerics, underscores, periods, and hyphens.
  • Start with alphanumeric.
  • End alphanumeric or underscore.
  • NSG names must be unique within a resource group.


Consider using names that meet Network Security Group naming requirements. Additionally consider naming resources with a standard naming convention.


This rule does not check if Network Security Group names are unique.

Last update: 2021-09-24