The base rules are

  • Use lowercase
  • Use hyphens where permitted
  • Suffix resources with the resource type

General Services

<project>-<environment/label>[-<number>][-<location>]-<resource common name>

Child Services

<project>-<environment/label>[-<number>][-<location>]-<resource common name>-<child resource common name>

Below are the definition of the parameters.

Project

This could be the internal name of the project or the name of a client’s project. Example could be NCR123.

Environment/Label

  • Environment: Most companies and agencies have dev and staging environments, or cost centers.
  • Label can be a branch name, a release version or any label. Example v1-2-3. It could be the OS type for virtual machines.

It can be a combination of both, separated by a hyphen.

Number

This is an optional parameter. Useful when you have multiple instances of the same resources.

Location

An optional parameter. This indicates the geographic location of the resource.

Resource common name

Azure services mostly have generally accepted abbreviations. Like VM for Virtual Machine. Where there are no common accepted abbreviations, make your own standard abbreviations

Resource/Service:Short Code:Long Code:
Subscriptionsubsub
Resource Grouprgrg
Virtual Machinevmvm
Availability Setavsavset
Virtual Networkvnvnet
Subnetsubsubnet
Public IP Addresspippublicip
Network Security Groupnsgnetworksg
Storage Accountstgstorage
TrafficManagertmtrafficmgmr
Load Balancerlbloadbalancer
Application Gatewayagwappgateway
App Servicesvcappsvc
Key Vaultkvkv
App Service Planaspappplan
Sql Databasesdbsqldatabase
Sql Serversqlsqlserver
Diskdskdisk
DNS Zonednsdnszone
Log Analyticsloaloganalytics
Logic Apploglogapp
Network Interfacenifnetinterface

Examples

Virtual Machines

ncr123-win-01-vm
ncr123-win-01-vm-pip //public IP associated with vm (child resource)

App Service

ncr123-prd-euw- appplan //app service plan in West Europe
ncr123-prd- appplan //app service plan