Skip to content

Use valid VM names#

Operational Excellence · Virtual Machine · Azure.VM.Name

Virtual Machine (VM) names should meet naming requirements.

Description#

When naming Azure resources, resource names must meet service requirements. The requirements for VM names are:

  • Between 1 and 64 characters long.
  • Alphanumerics, underscores, periods, and hyphens.
  • Start with alphanumeric.
  • End alphanumeric or underscore.
  • VM names must be unique within a resource group.

Recommendation#

Consider using names that meet VM resource name requirements. Additionally, consider using a resource name that meeting OS naming requirements.

Notes#

This rule does not check if VM names are unique. Additionally, VM computer names have additional restrictions. See Azure.VM.ComputerName for details.


Last update: 2021-09-24