CmdID / az / az cosmosdb / az cosmosdb postgres
az cosmosdb postgres check-name-availability
Checks availability of a cluster name. Azure CLI reference
Cluster names should be globally unique; at least 3 characters and at most 40 characters long; they must only contain lowercase letters, numbers, and hyphens; and must not start or end with a hyphen.
2 options Its page in the Azure CLI reference
Options
--nameCluster name to verify.--typeResource type used for verification.