az cosmosdb network-rule
Manage Azure Cosmos DB network rules.
Commands
Name | Description | Type | Status |
---|---|---|---|
az cosmosdb network-rule add |
Adds a virtual network rule to an existing Cosmos DB database account. |
Core | GA |
az cosmosdb network-rule list |
Lists the virtual network accounts associated with a Cosmos DB account. |
Core | GA |
az cosmosdb network-rule remove |
Remove a virtual network rule from an existing Cosmos DB database account. |
Core | GA |
az cosmosdb network-rule add
Adds a virtual network rule to an existing Cosmos DB database account.
az cosmosdb network-rule add --subnet
[--ids]
[--ignore-missing-endpoint {false, true}]
[--name]
[--resource-group]
[--subscription]
[--virtual-network]
Required Parameters
Name or ID of the subnet.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Create firewall rule before the virtual network has vnet service endpoint enabled.
Name of the Cosmos DB database account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VNET, which must be provided in conjunction with the name of the subnet.
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 network-rule list
Lists the virtual network accounts associated with a Cosmos DB account.
az cosmosdb network-rule list --name
--resource-group
Required Parameters
Name of the Cosmos DB database account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 network-rule remove
Remove a virtual network rule from an existing Cosmos DB database account.
az cosmosdb network-rule remove --subnet
[--ids]
[--name]
[--resource-group]
[--subscription]
[--virtual-network]
Required Parameters
Name or ID of the subnet.
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the Cosmos DB database account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
The name of the VNET, which must be provided in conjunction with the name of the subnet.
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.