Microsoft.DocumentDB databaseAccounts/apis/databases

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": "2016-03-31",
  "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 2016-03-31
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