az cosmosdb collection
This command has been deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Manage Azure Cosmos DB collections.
Commands
Name | Description | Type | Status |
---|---|---|---|
az cosmosdb collection create |
Creates an Azure Cosmos DB collection. |
Core | Deprecated |
az cosmosdb collection delete |
Deletes an Azure Cosmos DB collection. |
Core | Deprecated |
az cosmosdb collection exists |
Returns a boolean indicating whether the collection exists. |
Core | Deprecated |
az cosmosdb collection list |
Lists all Azure Cosmos DB collections. |
Core | Deprecated |
az cosmosdb collection show |
Shows an Azure Cosmos DB collection and its offer. |
Core | Deprecated |
az cosmosdb collection update |
Updates an Azure Cosmos DB collection. |
Core | Deprecated |
az cosmosdb collection create
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Creates an Azure Cosmos DB collection.
az cosmosdb collection create --collection-name
--db-name
[--cep]
[--default-ttl]
[--indexing-policy]
[--key]
[--name]
[--partition-key-path]
[--resource-group-name]
[--throughput]
[--url-connection]
Required Parameters
Collection Name.
Database Name.
Optional Parameters
Client Encryption Policy, you can enter it as a string or as a file, e.g., --cep @policy-file.json or --cep "{"includedPaths": [{"path": "/path1","clientEncryptionKeyId": "key1","encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256","encryptionType": "Deterministic"}],"policyFormatVersion": 2}".
Default TTL. Provide 0 to disable.
Indexing Policy, you can enter it as a string or as a file, e.g., --indexing-policy @policy-file.json).
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.
Partition Key Path, e.g., '/properties/name'.
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 collection delete
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Deletes an Azure Cosmos DB collection.
az cosmosdb collection delete --collection-name
--db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
[--yes]
Required Parameters
Collection Name.
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 collection exists
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Returns a boolean indicating whether the collection exists.
az cosmosdb collection exists --collection-name
--db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
Required Parameters
Collection Name.
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 collection list
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Lists all Azure Cosmos DB collections.
az cosmosdb collection list --db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
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 collection show
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Shows an Azure Cosmos DB collection and its offer.
az cosmosdb collection show --collection-name
--db-name
[--key]
[--name]
[--resource-group-name]
[--url-connection]
Required Parameters
Collection Name.
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 collection update
This command is implicitly deprecated because command group 'cosmosdb collection' is deprecated and will be removed in a future release. Use 'cosmosdb sql container, cosmosdb mongodb collection, cosmosdb cassandra table, cosmosdb gremlin graph or cosmosdb table' instead.
Updates an Azure Cosmos DB collection.
az cosmosdb collection update --collection-name
--db-name
[--default-ttl]
[--indexing-policy]
[--key]
[--name]
[--resource-group-name]
[--throughput]
[--url-connection]
Required Parameters
Collection Name.
Database Name.
Optional Parameters
Default TTL. Provide 0 to disable.
Indexing Policy, you can enter it as a string or as a file, e.g., --indexing-policy @policy-file.json).
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.