az cosmosdb database
This command has been deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Manage Azure Cosmos DB databases.
Commands
Name | Description | Type | Status |
---|---|---|---|
az cosmosdb database create |
Creates an Azure Cosmos DB database. |
Core | Deprecated |
az cosmosdb database delete |
Deletes an Azure Cosmos DB database. |
Core | Deprecated |
az cosmosdb database exists |
Returns a boolean indicating whether the database exists. |
Core | Deprecated |
az cosmosdb database list |
Lists all Azure Cosmos DB databases. |
Core | Deprecated |
az cosmosdb database show |
Shows an Azure Cosmos DB database. |
Core | Deprecated |
az cosmosdb database create
This command is implicitly deprecated because command group 'cosmosdb database' is deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Creates an Azure Cosmos DB database.
az cosmosdb database create --db-name
[--key]
[--name]
[--resource-group-name]
[--throughput]
[--url-connection]
Examples
Creates an Azure Cosmos DB database.
az cosmosdb database create --name MyCosmosDBDatabaseAccount --resource-group MyResourceGroup --db-name MyDatabase
Required Parameters
Database Name.
Optional Parameters
Cosmos DB account key. Must be used in conjunction with cosmosdb account name or url-connection.
Cosmos DB account name. Must be used in conjunction with either name of the resource group or cosmosdb account key.
Name of the resource group. Must be used in conjunction with cosmosdb account name.
Offer Throughput (RU/s).
Cosmos DB account url connection. Must be used in conjunction with cosmosdb account key.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az cosmosdb database delete
This command is implicitly deprecated because command group 'cosmosdb database' is deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Deletes an Azure Cosmos DB database.
az cosmosdb database delete --db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
[--yes]
Examples
Deletes an Azure Cosmos DB database (autogenerated)
az cosmosdb database delete --db-name MyDatabase --name MyCosmosDBDatabaseAccount --resource-group-name MyResourceGroup
Required Parameters
Database Name.
Optional Parameters
Cosmos DB account key. Must be used in conjunction with cosmosdb account name or url-connection.
Cosmos DB account name. Must be used in conjunction with either name of the resource group or cosmosdb account key.
Name of the resource group. Must be used in conjunction with cosmosdb account name.
Cosmos DB account url connection. Must be used in conjunction with cosmosdb account key.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az cosmosdb database exists
This command is implicitly deprecated because command group 'cosmosdb database' is deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Returns a boolean indicating whether the database exists.
az cosmosdb database exists --db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
Examples
Returns a boolean indicating whether the database exists (autogenerated)
az cosmosdb database exists --db-name MyDatabase --name MyCosmosDBDatabaseAccount --resource-group-name MyResourceGroup
Required Parameters
Database Name.
Optional Parameters
Cosmos DB account key. Must be used in conjunction with cosmosdb account name or url-connection.
Cosmos DB account name. Must be used in conjunction with either name of the resource group or cosmosdb account key.
Name of the resource group. Must be used in conjunction with cosmosdb account name.
Cosmos DB account url connection. Must be used in conjunction with cosmosdb account key.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az cosmosdb database list
This command is implicitly deprecated because command group 'cosmosdb database' is deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Lists all Azure Cosmos DB databases.
az cosmosdb database list [--key]
[--name]
[--resource-group-name]
[--url-connection]
Examples
Lists all Azure Cosmos DB databases (autogenerated)
az cosmosdb database list --name MyCosmosDBDatabaseAccount --resource-group-name MyResourceGroup
Optional Parameters
Cosmos DB account key. Must be used in conjunction with cosmosdb account name or url-connection.
Cosmos DB account name. Must be used in conjunction with either name of the resource group or cosmosdb account key.
Name of the resource group. Must be used in conjunction with cosmosdb account name.
Cosmos DB account url connection. Must be used in conjunction with cosmosdb account key.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az cosmosdb database show
This command is implicitly deprecated because command group 'cosmosdb database' is deprecated and will be removed in a future release. Use 'cosmosdb sql database, cosmosdb mongodb database, cosmosdb cassandra keyspace or cosmosdb gremlin database' instead.
Shows an Azure Cosmos DB database.
az cosmosdb database show --db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
Examples
Shows an Azure Cosmos DB database (autogenerated)
az cosmosdb database show --db-name MyDatabase --name MyCosmosDBDatabaseAccount --resource-group-name MyResourceGroup
Required Parameters
Database Name.
Optional Parameters
Cosmos DB account key. Must be used in conjunction with cosmosdb account name or url-connection.
Cosmos DB account name. Must be used in conjunction with either name of the resource group or cosmosdb account key.
Name of the resource group. Must be used in conjunction with cosmosdb account name.
Cosmos DB account url connection. Must be used in conjunction with cosmosdb account key.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.