Skip to content

Commit

Permalink
azurerm_cosmosdb_account: Ignore the change of capabilities property (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai authored Oct 28, 2021
1 parent 1386c19 commit 9d1f4cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/services/cosmos/cosmosdb_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func resourceCosmosDbAccount() *pluginsdk.Resource {
"capabilities": {
Type: pluginsdk.TypeSet,
Optional: true,
Computed: true,
ForceNew: true,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
Expand Down
4 changes: 4 additions & 0 deletions internal/services/cosmos/cosmosdb_account_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func TestAccCosmosDBAccount_basic_mongo_strong(t *testing.T) {
testAccCosmosDBAccount_basicMongoDBWith(t, documentdb.DefaultConsistencyLevelStrong)
}

func TestAccCosmosDBAccount_basic_mongo_strong_without_capability(t *testing.T) {
testAccCosmosDBAccount_basicWith(t, documentdb.DatabaseAccountKindMongoDB, documentdb.DefaultConsistencyLevelStrong)
}

func TestAccCosmosDBAccount_basic_parse_boundedStaleness(t *testing.T) {
testAccCosmosDBAccount_basicWith(t, documentdb.DatabaseAccountKindParse, documentdb.DefaultConsistencyLevelBoundedStaleness)
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/cosmosdb_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following arguments are supported:

* `public_network_access_enabled` - (Optional) Whether or not public network access is allowed for this CosmosDB account.

* `capabilities` - (Optional) The capabilities which should be enabled for this Cosmos DB account. Value is a `capabilities` block as defined below.
* `capabilities` - (Optional) The capabilities which should be enabled for this Cosmos DB account. Value is a `capabilities` block as defined below. Changing this forces a new resource to be created.

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

Expand Down

0 comments on commit 9d1f4cd

Please sign in to comment.