Skip to content

Commit af1b76f

Browse files
azurerm_private_dns_resolver_inbound_endpoint - Mark nested arguments in ip_configurations as ForceNew (#31088)
Co-authored-by: schollii <schollii@users.noreply.github.com> Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com>
1 parent 2ef5359 commit af1b76f

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

internal/services/privatednsresolver/private_dns_resolver_inbound_endpoint_resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,21 @@ func (r PrivateDNSResolverInboundEndpointResource) Arguments() map[string]*plugi
7676
"subnet_id": {
7777
Type: pluginsdk.TypeString,
7878
Required: true,
79+
ForceNew: true,
7980
ValidateFunc: commonids.ValidateSubnetID,
8081
},
8182

8283
"private_ip_address": {
8384
Type: pluginsdk.TypeString,
8485
Optional: true,
86+
ForceNew: true,
8587
Computed: true,
8688
},
8789

8890
"private_ip_allocation_method": {
8991
Type: pluginsdk.TypeString,
9092
Optional: true,
93+
ForceNew: true,
9194
Default: string(inboundendpoints.IPAllocationMethodDynamic),
9295
ValidateFunc: validation.StringInSlice(inboundendpoints.PossibleValuesForIPAllocationMethod(), false),
9396
},

website/docs/r/private_dns_resolver_inbound_endpoint.html.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,25 @@ resource "azurerm_private_dns_resolver_inbound_endpoint" "example" {
6565

6666
The following arguments are supported:
6767

68-
* `name` - (Required) Specifies the name which should be used for this Private DNS Resolver Inbound Endpoint. Changing this forces a new Private DNS Resolver Inbound Endpoint to be created.
68+
* `name` - (Required) Specifies the name which should be used for this Private DNS Resolver Inbound Endpoint. Changing this forces a new resource to be created.
6969

70-
* `private_dns_resolver_id` - (Required) Specifies the ID of the Private DNS Resolver Inbound Endpoint. Changing this forces a new Private DNS Resolver Inbound Endpoint to be created.
70+
* `private_dns_resolver_id` - (Required) Specifies the ID of the Private DNS Resolver Inbound Endpoint. Changing this forces a new resource to be created.
7171

72-
* `ip_configurations` - (Required) One `ip_configurations` block as defined below. Changing this forces a new Private DNS Resolver Inbound Endpoint to be created.
72+
* `ip_configurations` - (Required) One `ip_configurations` block as defined below. Changing this forces a new resource to be created.
7373

74-
* `location` - (Required) Specifies the Azure Region where the Private DNS Resolver Inbound Endpoint should exist. Changing this forces a new Private DNS Resolver Inbound Endpoint to be created.
74+
* `location` - (Required) Specifies the Azure Region where the Private DNS Resolver Inbound Endpoint should exist. Changing this forces a new resource to be created.
7575

7676
* `tags` - (Optional) A mapping of tags which should be assigned to the Private DNS Resolver Inbound Endpoint.
7777

7878
---
7979

8080
An `ip_configurations` block supports the following:
8181

82-
* `subnet_id` - (Required) The subnet ID of the IP configuration.
82+
* `subnet_id` - (Required) The subnet ID of the IP configuration. Changing this forces a new resource to be created.
8383

84-
* `private_ip_address` - (Optional) Private IP address of the IP configuration.
84+
* `private_ip_address` - (Optional) Private IP address of the IP configuration. Changing this forces a new resource to be created.
8585

86-
* `private_ip_allocation_method` - (Optional) Private IP address allocation method. Allowed value is `Dynamic` and `Static`. Defaults to `Dynamic`.
86+
* `private_ip_allocation_method` - (Optional) Private IP address allocation method. Possible values are `Dynamic` and `Static`. Defaults to `Dynamic`. Changing this forces a new resource to be created.
8787

8888
## Attributes Reference
8989

0 commit comments

Comments
 (0)