az cosmosdb service
Commands to perform operations on Service.
Commands
az cosmosdb service create |
Create a cosmosdb service resource. |
az cosmosdb service delete |
Delete the given cosmosdb service resource. |
az cosmosdb service list |
List all cosmosdb service resource under an account. |
az cosmosdb service show |
Get cosmosdb service resource under an account. |
az cosmosdb service update |
Update a cosmosdb service resource. |
az cosmosdb service create
Create a cosmosdb service resource.
az cosmosdb service create --account-name
--name
--resource-group-name
[--count]
[--no-wait]
[--size]
Examples
Create a cosmosdb service resource.
az cosmosdb service create --resource-group MyResourceGroup --account-name MyAccount --name "sqlDedicatedGateway" --count 3 --size "Cosmos.D4s"
Required Parameters
Name of the Cosmos DB database account.
Service Name.
Name of the resource group of the database account.
Optional Parameters
Instance Count.
Do not wait for the long-running operation to finish.
Instance Size. Possible values are: Cosmos.D4s, Cosmos.D8s, Cosmos.D16s etc.
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 service delete
Delete the given cosmosdb service resource.
az cosmosdb service delete --account-name
--name
--resource-group-name
[--no-wait]
[--yes]
Examples
Delete the given cosmosdb service resource.
az cosmosdb service delete --resource-group MyResourceGroup --account-name MyAccount --name "sqlDedicatedGateway"
Required Parameters
Name of the Cosmos DB database account.
Service Name.
Name of the resource group of the database account.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
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 service list
List all cosmosdb service resource under an account.
az cosmosdb service list --account-name
--resource-group-name
Examples
List all cosmosdb service resource under an account.
az cosmosdb service list --resource-group MyResourceGroup --account-name MyAccount
Required Parameters
Name of the Cosmos DB database account.
Name of the resource group of the database account.
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 service show
Get cosmosdb service resource under an account.
az cosmosdb service show --account-name
--name
--resource-group-name
Examples
Get cosmosdb service resource under an account.
az cosmosdb service show --resource-group MyResourceGroup --account-name MyAccount --name "sqlDedicatedGateway"
Required Parameters
Name of the Cosmos DB database account.
Service Name.
Name of the resource group of the database account.
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 service update
Update a cosmosdb service resource.
az cosmosdb service update --account-name
--count
--name
--resource-group-name
[--no-wait]
[--size]
Examples
Update a cosmosdb service resource.
az cosmosdb service update --resource-group MyResourceGroup --account-name MyAccount --name "sqlDedicatedGateway" --count 3
Required Parameters
Name of the Cosmos DB database account.
Instance Count.
Service Name.
Name of the resource group of the database account.
Optional Parameters
Do not wait for the long-running operation to finish.
Instance Size. Possible values are: Cosmos.D4s, Cosmos.D8s, Cosmos.D16s etc.
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.
Feedback
Submit and view feedback for