What naming convention do you use for Azure resources?
Asked by
MellowCedar42
I'm fairly new to Azure and still getting familiar with all the different resource types and services. In on-premises environments, I usually named devices and objects according to their location, typeโphysical or virtualโand role. What naming patterns do you use for Azure resources so they stay clear, consistent, and easy to document?
Answers
A good place to start is Microsoftโs Azure resource-naming guidance, including its recommended abbreviations. Use it as a baseline, then adapt it to your organizationโs needs. One important caveat is that some resource names become part of globally unique public hostnames, so you may not be able to apply the same template to every resource type.
Reply to this answer
We use company-system-location-environment-resource. For example, an ordering application might have resources named acme-order-uscentral-prd-rg, acme-order-uscentral-prd-cosmos, and acme-order-uscentral-prd-appsvc. Having a predictable structure makes infrastructure-as-code and deployment pipelines much easier to manage, and it helps people identify resources quickly in the Azure portal.
Reply to this answer
A hybrid approach works well: combine your internal naming standard with Microsoftโs Cloud Adoption Framework guidance. Keep the name focused on stable identifiers such as workload, environment, region, and resource type, and use tags for ownership, cost center, business unit, and other metadata.
Reply to this answer
A straightforward pattern is resource-type, application, environment, location, and instance number. For example: afw-hub-prod-uks-01. A reference list of common Azure resource abbreviations can also help keep names consistent, although youโll probably need to fill in gaps for less common services.
QuietOrbit5: The abbreviation list is useful, but it doesnโt cover every resource type and some entries may not stay current, so Iโd treat it as a reference rather than a strict standard.
Reply to this answer
Add your answer
Answers are reviewed before publication.
FrostedMaple31: Thatโs close to what we do too, although we leave out parts of the name when theyโre obvious and use tags for details that donโt need to be embedded in every resource name.