Finding the best naming convention

In Azure, you have to consider the following aspects of a resource:

  • A region where it is provisioned
  • A resource type
  • A resource name
  • A resource instance type/environment

We will start from a resource group. By default you can name it as follows:

MyNewServicenewPortaloldplatform

The rule of thumb is to select a name that will be self-explanatory. While selecting a name such as MyNewService should be fine, it does not give you the following information:

  • Where the resource group is located
  • What environment (test/production/staging/and so on) it represents

What is more, if you, for example, list resources inside your subscription, you will not know which resource type MyNewService is, without selecting ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.