Skip to content

Commit

Permalink
azurerm_cosmosdb_account - support IPV4 address for ip_range_filter (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei authored Aug 27, 2024
1 parent 18e6c34 commit 11401cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/services/cosmos/cosmosdb_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func resourceCosmosDbAccount() *pluginsdk.Resource {
Optional: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
ValidateFunc: validation.IsCIDR,
ValidateFunc: validation.Any(validation.IsCIDR, validation.IsIPv4Address),
},
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/cosmos/cosmosdb_account_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4640,7 +4640,7 @@ resource "azurerm_cosmosdb_account" "test" {
}
is_virtual_network_filter_enabled = true
ip_range_filter = ["55.0.1.0/24", "55.0.2.0/24"]
ip_range_filter = ["55.0.1.0/24", "55.0.2.0/24", "0.0.0.0"]
virtual_network_rule {
id = azurerm_subnet.subnet1.id
Expand Down

0 comments on commit 11401cd

Please sign in to comment.