Use valid VM names#
Virtual Machine (VM) names should meet naming requirements.
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.
Consider using names that meet VM resource name requirements. Additionally, consider using a resource name that meeting OS naming requirements.
This rule does not check if VM names are unique.
Additionally, VM computer names have additional restrictions.
Azure.VM.ComputerName for details.