opentofu/builtin/providers/azurerm
stack72 a869d2f8a9 provider/azurerm: azurerm_network_interface diffs didn't match during
apply

The IP COnfiguration block of `azurerm_network_interface` didn't have a
hash created in a way that changes to the optional params were being
picked up:

```
~ azurerm_network_interface.test
    ip_configuration.273485505.name:                                       "testconfiguration1" => ""
    ip_configuration.273485505.private_ip_address_allocation:              "dynamic" => ""
    ip_configuration.273485505.subnet_id:                                  "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" => ""
    ip_configuration.~273485505.load_balancer_backend_address_pools_ids.#: "" => "<computed>"
    ip_configuration.~273485505.load_balancer_inbound_nat_rules_ids.#:     "" => "<computed>"
    ip_configuration.~273485505.name:                                      "" => "testconfiguration1"
    ip_configuration.~273485505.private_ip_address:                        "" => "<computed>"
    ip_configuration.~273485505.private_ip_address_allocation:             "" => "dynamic"
    ip_configuration.~273485505.public_ip_address_id:                      "" => "${azurerm_public_ip.test.id}"
    ip_configuration.~273485505.subnet_id:                                 "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub"
```

This caused the following error:

```
Error applying plan:

1 error(s) occurred:

* azurerm_network_interface.test: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.

Please include the following information in your report:
```

Notice that the hash didn't change. This change adds the remaining optional params to the hash so that the hash id will change.

```
~ azurerm_network_interface.test
    ip_configuration.4255411321.load_balancer_backend_address_pools_ids.#: "" => "<computed>"
    ip_configuration.4255411321.load_balancer_inbound_nat_rules_ids.#:     "" => "<computed>"
    ip_configuration.4255411321.name:                                      "" => "testconfiguration1"
    ip_configuration.4255411321.private_ip_address:                        "" => "<computed>"
    ip_configuration.4255411321.private_ip_address_allocation:             "" => "dynamic"
    ip_configuration.4255411321.public_ip_address_id:                      "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/public-ip"
    ip_configuration.4255411321.subnet_id:                                 "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub"
    ip_configuration.966273186.name:                                       "testconfiguration1" => ""
    ip_configuration.966273186.private_ip_address_allocation:              "dynamic" => ""
    ip_configuration.966273186.subnet_id:                                  "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" => ""
```

This allows the Update to work as expected :)

```
azurerm_network_interface.test: Modifications complete

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
```
2016-05-20 09:34:40 +01:00
..
config.go provider/azurerm: Error on bad creds and speed++ (#6290) 2016-04-22 00:50:47 +01:00
network_security_rule_test.go Scaffold the Azure RM Network Security Rule resource 2016-01-09 00:06:58 +00:00
network_security_rule.go Scaffold the Azure RM Network Security Rule resource 2016-01-09 00:06:58 +00:00
provider_test.go provider/azurerm: Clean up work for base provider 2015-12-15 18:31:02 -05:00
provider.go provider/azurerm: Error on bad creds and speed++ (#6290) 2016-04-22 00:50:47 +01:00
resource_arm_availability_set_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_availability_set.go provider/azurerm: Add scaffolding to tags 2016-01-18 11:48:01 -05:00
resource_arm_cdn_endpoint_test.go Azure does not allow CDN ports to be 0 (#6329) 2016-04-25 19:15:14 +01:00
resource_arm_cdn_endpoint.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_cdn_profile_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_cdn_profile.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_dns_a_record_test.go provider/azurerm: Add the DNS A Record Resource 2016-02-05 11:28:48 +00:00
resource_arm_dns_a_record.go provider/azurerm: Add the DNS A Record Resource 2016-02-05 11:28:48 +00:00
resource_arm_dns_aaaa_record_test.go provider/azurerm: Add AzureRM AAAA DNS Record resource 2016-02-05 12:14:09 +00:00
resource_arm_dns_aaaa_record.go provider/azurerm: Add AzureRM AAAA DNS Record resource 2016-02-05 12:14:09 +00:00
resource_arm_dns_cname_record_test.go provider/azurerm: Add DNS CName Record Resource 2016-02-05 12:51:33 +00:00
resource_arm_dns_cname_record.go provider/azurerm: Add DNS CName Record Resource 2016-02-05 12:51:33 +00:00
resource_arm_dns_mx_record_test.go provider/azurerm: Add azurerm_dns_mx_record resource 2016-02-07 22:26:56 +00:00
resource_arm_dns_mx_record.go provider/azurerm: Add azurerm_dns_mx_record resource 2016-02-07 22:26:56 +00:00
resource_arm_dns_ns_record_test.go provider/azurerm: Add azurerm_dns_ns_record resource 2016-02-06 19:09:52 +00:00
resource_arm_dns_ns_record.go provider/azurerm: Add azurerm_dns_srv_record resource 2016-02-07 21:49:02 +00:00
resource_arm_dns_srv_record_test.go provider/azurerm: Add azurerm_dns_srv_record resource 2016-02-07 21:49:02 +00:00
resource_arm_dns_srv_record.go provider/azurerm: Add azurerm_dns_mx_record resource 2016-02-07 22:26:56 +00:00
resource_arm_dns_txt_record_test.go provider/azurerm: Add azurerm_dns_txt_record resource 2016-02-06 18:43:53 +00:00
resource_arm_dns_txt_record.go provider/azurerm: Add azurerm_dns_txt_record resource 2016-02-06 18:43:53 +00:00
resource_arm_dns_zone_test.go provider/azurerm: Use separate "if" over "else if" 2016-02-03 13:16:36 -05:00
resource_arm_dns_zone.go provider/azurerm: Use separate "if" over "else if" 2016-02-03 13:16:36 -05:00
resource_arm_local_network_gateway_test.go provider/azurerm: Fix up network gateway tests 2015-12-23 18:49:21 +02:00
resource_arm_local_network_gateway.go provider/azurerm: Fix up network gateway tests 2015-12-23 18:49:21 +02:00
resource_arm_network_interface_card_test.go Adds the ability to tag more of the Azure RM Network resources 2016-01-18 20:55:28 +00:00
resource_arm_network_interface_card.go provider/azurerm: azurerm_network_interface diffs didn't match during 2016-05-20 09:34:40 +01:00
resource_arm_network_security_group_test.go Adds the ability to tag more of the Azure RM Network resources 2016-01-18 20:55:28 +00:00
resource_arm_network_security_group.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_network_security_rule_test.go Scaffold the Azure RM Network Security Rule resource 2016-01-09 00:06:58 +00:00
resource_arm_network_security_rule.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_public_ip_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_public_ip.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_resource_group_test.go provider/azurerm: Use Riviera for Resource Groups 2016-02-18 14:50:43 -08:00
resource_arm_resource_group.go provider/azurerm: Use Riviera for Resource Groups 2016-02-18 14:50:43 -08:00
resource_arm_route_table_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_route_table.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_route_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_route.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_search_service_test.go provider/azurerm: Add documentation for the azurerm_search_service 2016-02-19 00:57:51 +00:00
resource_arm_search_service.go provider/azurerm: Add documentation for the azurerm_search_service 2016-02-19 00:57:51 +00:00
resource_arm_sql_database_test.go provider/azurerm: Adding azurerm_sql_database resource 2016-02-04 23:36:50 +00:00
resource_arm_sql_database.go provider/azurerm: Adding azurerm_sql_database resource 2016-02-04 23:36:50 +00:00
resource_arm_sql_firewall_rule_test.go provider/azurerm: Add azurerm_sql_firewall_rule resource 2016-02-08 21:13:59 +00:00
resource_arm_sql_firewall_rule.go provider/azurerm: Add azurerm_sql_firewall_rule resource 2016-02-08 21:13:59 +00:00
resource_arm_sql_server_test.go deps: Update jen20/riviera 2016-02-04 10:02:58 +00:00
resource_arm_sql_server.go deps: Update jen20/riviera 2016-02-04 10:02:58 +00:00
resource_arm_storage_account_test.go provider/azurerm: Add azurerm_storage_account 2016-01-20 19:47:23 -05:00
resource_arm_storage_account.go provider/azurerm: Add support for exporting the (#6742) 2016-05-18 16:31:43 +01:00
resource_arm_storage_blob_test.go AzureRM storage container and blob tests and documentation 2016-01-27 00:23:57 +00:00
resource_arm_storage_blob.go AzureRM storage container and blob tests and documentation 2016-01-27 00:23:57 +00:00
resource_arm_storage_container_test.go AzureRM storage container and blob tests and documentation 2016-01-27 00:23:57 +00:00
resource_arm_storage_container.go provider/azurerm: Add storage container and blob 2016-01-26 15:45:18 -05:00
resource_arm_storage_queue_test.go Azure RM Storage Queue: 2016-01-27 12:27:58 +00:00
resource_arm_storage_queue.go Azure RM Storage Queue: 2016-01-27 12:27:58 +00:00
resource_arm_subnet_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_subnet.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resource_arm_template_deployment_test.go provider/azurerm: Add the documentation for the AzureRM Template 2016-03-21 18:59:54 +00:00
resource_arm_template_deployment.go provider/azurerm: Make ARM template timeout 40m 2016-04-25 10:29:50 -05:00
resource_arm_virtual_machine_test.go provider/azurerm: Fixing Acceptance Test for VM tags (#6589) 2016-05-10 22:31:56 +01:00
resource_arm_virtual_machine.go [azurerm] Add os_type and image_uri in azurerm_virtual_machine (#6553) 2016-05-09 18:51:19 +01:00
resource_arm_virtual_network_test.go Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC 2016-01-29 12:48:11 +00:00
resource_arm_virtual_network.go Change resource.StateChangeConf to use an array for target states 2016-01-21 01:20:41 +00:00
resourceid_test.go provider/azurerm: Parse "resourcegroups" in IDs 2016-01-19 11:32:16 -05:00
resourceid.go provider/azurerm: Parse "resourcegroups" in IDs 2016-01-19 11:32:16 -05:00
tags_test.go provider/azurerm: Add tests for tag scaffolding 2016-01-18 12:28:04 -05:00
tags.go provider/azurerm: Add scaffolding to tags 2016-01-18 11:48:01 -05:00