---
type: resource-type
title: CosmosDb
description: azure resource type Microsoft.DocumentDB/databaseAccounts
name: CosmosDb
lexicon: azure
resource_type: Microsoft.DocumentDB/databaseAccounts
---
`Microsoft.DocumentDB/databaseAccounts`, a resource type of the azure lexicon.

## Properties

- `name` (`string`, required): Cosmos DB database account name.
- `properties` (`CosmosDbAccount_DatabaseAccountCreateUpdateProperties`, required): Properties to create and update Azure Cosmos DB database accounts.
- `identity` (`CosmosDbAccount_ManagedServiceIdentity`, optional): Identity for the resource.
- `kind` (`"GlobalDocumentDB" | "MongoDB" | "Parse"`, optional): Indicates the type of database account. This can only be set at database account creation.
- `location` (`string`, optional): The location of the resource group to which the resource belongs.
- `resources` (`any[]`, optional)
- `tags` (`Record<string, unknown>`, optional): Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

## Attributes

- `documentEndpoint`
- `id`
- `provisioningState`
