Skip to content

Use valid Cosmos DB account names#

Operational Excellence · Cosmos DB · Rule · 2021_09 · Awareness

Cosmos DB account names should meet naming requirements.


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.


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


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