Skip to content

Commit

Permalink
azurerm_virtual_network_gateway - changing ip_configuration force…
Browse files Browse the repository at this point in the history
…s new.
  • Loading branch information
ziyeqf committed Oct 31, 2024
1 parent e2798fc commit e27bee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/services/network/virtual_network_gateway_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func resourceVirtualNetworkGatewaySchema() map[string]*pluginsdk.Schema {
"ip_configuration": {
Type: pluginsdk.TypeList,
Required: true,
// Each type gateway requires exact number of `ip_configuration`, and overwriting an existing one is not allowed.
ForceNew: true,
MaxItems: 3,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/virtual_network_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ EOF

The following arguments are supported:

* `ip_configuration` - (Required) One or more (up to 3) `ip_configuration` blocks documented below.
* `ip_configuration` - (Required) One or more (up to 3) `ip_configuration` blocks documented below. Changing this forces a new resource to be created.
An active-standby gateway requires exactly one `ip_configuration` block,
an active-active gateway requires exactly two `ip_configuration` blocks whereas
an active-active zone redundant gateway with P2S configuration requires exactly three `ip_configuration` blocks.
Expand Down

0 comments on commit e27bee1

Please sign in to comment.