Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.79 KB

CAF.Name.VM.md

File metadata and controls

48 lines (32 loc) · 1.79 KB
pillar category online version
Operational Excellence
Resource naming

Use standard VM names

SYNOPSIS

Virtual machine names should use a standard prefix.

DESCRIPTION

An effective naming convention allows operators to quickly identify resource type, associated workload, deployment environment and Azure region.

For VMs, the Cloud Adoption Framework recommends using the vm prefix.

Requirements for VM names:

  • For Windows, at least 1 character, but no more than 15.
  • For Linux, at least 1 character, but no more than 64.
  • Can include alphanumeric and hyphen characters.
  • Can only start with a letter or number, and end with a letter or number.
  • VM names must be unique within a resource group.

RECOMMENDATION

Consider creating VMs with a standard name. Additionally consider using Azure Policy to only permit creation using a standard naming convention.

NOTES

This rule does not check if VM names are unique.

To configure this rule:

  • Override the CAF_VirtualMachinePrefix configuration value with an array of allowed prefixes.
  • Override CAF_UseLowerNames with false to allow mixed case in resource names. By default only lower-case letters and other supported characters are allowed. This option affects all resource name rules.

LINKS