Author : MD TAREQ HASSAN | Updated : 2022/01/23

Best Practices

Restrictions

There are certain restrictions that must be followed while creating Azure resources:

Abbreviation for Resource Types

Resource Type Abbreviation
Management Group mg
Resource Group rg
Virtual Network vnet
Express Route Gateway ergw
VPM Gateway vpngw
Azure Firewall Policy afwp
Azure Firewall afw
Application Gateway appgw
Virtual Machine vm
Public IP pip
Network Interface Card nic
Log Analytics Workspace law
Storage Account sa
Azure Container Registry acr
Key Vault kv
Private Endpoint pep
Azure Kubernetes Service aks
Azure SQL Managed Instance sqlmi
Network Security Group nsg
Route Table rt

Format

Use all lowercase letters to make it consistent because certain resources only allow lowercase letters.

(1)ResourceTypeAbbreviationー(2)Workload/Purposeー(3)SystemNameー(4)EnvironmentNameー(5)Regionー(6)Suffix

Examples

rg-main-hsystem-dev-japaneast

rg-microservice-hsystem-dev-japaneast
rg-microservice-hsystem-dev-japaneast-001

rg-microservice-hsystem-qa-japaneast
rg-microservice-hsystem-dr-japanwest

rg-webapp-hsystem-prod-japaneast
rg-webapp-hsystem-prod-japaneast-001

Explanation

  1. ResourceTypeAbbreviation:
  2. Workload/Purpose
    • What kind of workload will be hosted
    • Purpose of the infrastructure
  3. SystemName:
    • Name of the system
    • What is the name of the whole solution that infrastructure is being created for
  4. EnvironmentName:
    • Target environment
    • Dev, QA, Prod, Dr etc.
  5. Region:
    • In which region the resource will be created
    • Japan East, Japan West etc.
  6. Optional suffix
    • Suffix is optional
    • Use suffix only if identical resources will be created in same region
    • Example for usage of suffix: when you need multiple Azure SQL Managed Instance for same environment in the same region

Exceptions

Subnet Naming

Mandatory subnet names