Microsoft.DocumentDB databaseAccounts/apis/databases 2015-11-06

Template format

To create a Microsoft.DocumentDB/databaseAccounts/apis/databases resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.DocumentDB/databaseAccounts/apis/databases",
  "apiVersion": "2015-11-06",
  "properties": {
    "resource": {
      "id": "string"
    "options": {}
  "resources": []

Property values

The following tables describe the values you need to set in the schema.

Microsoft.DocumentDB/databaseAccounts/apis/databases object

Name Type Required Value
name string Yes Cosmos DB database name.
type enum Yes databases

See Set name and type for child resources.
apiVersion enum Yes 2015-11-06
properties object Yes Properties to create and update Azure Cosmos DB SQL database. - SqlDatabaseCreateUpdateProperties object
resources array No graphs collections containers

SqlDatabaseCreateUpdateProperties object

Name Type Required Value
resource object Yes The standard JSON format of a SQL database - SqlDatabaseResource object
options object Yes A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

SqlDatabaseResource object

Name Type Required Value
id string Yes Name of the Cosmos DB SQL database

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create Azure Cosmos with SQL API and multiple containers

Deploy to Azure
The template creates a Cosmos container with a SQL API and allows adding mulitple containers.