Skip to content

Use valid Cosmos DB account names#

Operational Excellence · Cosmos DB · Azure.Cosmos.AccountName

Cosmos DB account names should meet naming requirements.

Description#

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

  • Between 3 and 44 characters long.
  • Lowercase letters, numbers, and hyphens.
  • Start and end with letters and numbers.
  • Cosmos DB account names must be globally unique.

Recommendation#

Consider using names that meet Cosmos DB account naming requirements. Additionally consider naming resources with a standard naming convention.

Notes#

This rule does not check if Cosmos DB account names are unique.


Last update: 2021-10-19