Skip to content

Commit

Permalink
azurerm_cosmosdb_account - support the Serverless value for the `ca…
Browse files Browse the repository at this point in the history
…pabilities` property (#8533)
  • Loading branch information
creotiv authored Sep 21, 2020
1 parent 7e21ff4 commit 2ac0020
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func resourceArmCosmosDbAccount() *schema.Resource {
"EnableCassandra",
"EnableGremlin",
"EnableTable",
"EnableServerless",
"EnableMongo",
"MongoDBv3.4",
"mongoEnableDocLevelTTL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ func TestAccAzureRMCosmosDBAccount_capabilities_EnableTable(t *testing.T) {
testAccAzureRMCosmosDBAccount_capabilitiesWith(t, documentdb.GlobalDocumentDB, []string{"EnableTable"})
}

func TestAccAzureRMCosmosDBAccount_capabilities_EnableServerless(t *testing.T) {
testAccAzureRMCosmosDBAccount_capabilitiesWith(t, documentdb.GlobalDocumentDB, []string{"EnableServerless"})
}

func TestAccAzureRMCosmosDBAccount_capabilities_EnableMongo(t *testing.T) {
testAccAzureRMCosmosDBAccount_capabilitiesWith(t, documentdb.MongoDB, []string{"EnableMongo"})
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/cosmosdb_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The following arguments are supported:

* `enable_automatic_failover` - (Optional) Enable automatic fail over for this Cosmos DB account.

* `capabilities` - (Optional) The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, and `mongoEnableDocLevelTTL`.
* `capabilities` - (Optional) The capabilities which should be enabled for this Cosmos DB account. Possible values are `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`, `EnableTable`, `MongoDBv3.4`, `EnableServerless`, and `mongoEnableDocLevelTTL`.

* `is_virtual_network_filter_enabled` - (Optional) Enables virtual network filtering for this Cosmos DB account.

Expand All @@ -113,7 +113,7 @@ The following arguments are supported:

`capabilities` Configures the capabilities to enable for this Cosmos DB account:

* `name` - (Required) The capability to enable - Possible values are `AllowSelfServeUpgradeToMongo36`, DisableRateLimitingResponses`, `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `MongoDBv3.4` and `mongoEnableDocLevelTTL`.
* `name` - (Required) The capability to enable - Possible values are `AllowSelfServeUpgradeToMongo36`, DisableRateLimitingResponses`, `EnableAggregationPipeline`, `EnableCassandra`, `EnableGremlin`,`EnableMongo`, `EnableTable`, `EnableServerless`, `MongoDBv3.4` and `mongoEnableDocLevelTTL`.

**NOTE:** The `prefix` and `failover_priority` fields of a location cannot be changed for the location with a failover priority of `0`.

Expand Down

0 comments on commit 2ac0020

Please sign in to comment.