Edit

Share via


Azure Resources Naming Convention and Tagging

In this blog post, we discuss a key aspect of Cloud Adoption Framework methodology, namely the Azure resource name convention and why this is an essential aspect of keeping resources organized, easy to identify, and protects you from making things difficult when managing them.

Principal author: George Chrysovalantis Grammatikos


Why use a naming convention practice?

A proper naming convention is essential for a number of reasons:

  • Easy to find a resource when a user (Admin) filters Azure Portal resources
  • You can easily adhere to a unique names policy for resources
  • It is useful for calculating the cost of resources.

The naming rules and restrictions for Azure resources, such as length limits and which characters you can use, vary based on resource type. For more details, click Naming rules and restrictions for Azure resources

Determine a naming convention

Let us see an example of naming an Azure resource. The general naming convention proposal would be something like the one below:

Naming convention proposal

Note

Βetween the components that form the name you can for example use hyphen (-) or underscore (_), i.e. vm-webapp-dev-westeurope-01

The matrix below depicts a few more examples with several types of Azure resources:

Resource type Workload / App Enviornment Azure Region Instance
rg – {resource group} webapp dev westeurope 01
asp – {app service plan} webapp dev westeurope 01
ai – {application insights} webapp dev westeurope 01

The image below depicts how your Azure resources name will show after applying the above rules:

Resources To get more abbreviation examples about Azure resources, see below:

Tagging strategy

Another significant aspect that has to do with Azure resource management is the tagging strategy. The benefit that the tagging strategy can have is for filtering and reporting on resources when it comes to resource usage and billing. The image below depicts how your tags will show on your resource group:

How tags are shown

To read more about how you can define your tagging strategy, see Define your tagging strategy

Note

Whenever someone creates resources, resource groups or subscriptions, you can force them to add a new tag by adding a policy definition, as shown in the image below:

Available definitions

Summary

To summarize, understanding and using a clear and consistent Azure resource naming standard is essential for successful cloud adoption and administration within the Azure ecosystem. Organizations may expedite resource organization, make it simpler to identify resources, and reduce the risk of complexity in resource management by using established naming standards. Finally, a well-designed naming convention is a key component in encouraging efficiency, clarity, and scalability in cloud systems, resulting in smoother operations and increased overall productivity.