You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NIC should be created with multiple nat rules assigned.
Actual Behavior
azurerm_network_interface.network_interface.1: network.InterfacesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[{"code":"DuplicateResourceName","message":"Resource /subscriptions//resourceGroups//providers/Microsoft.Network/networkInterfaces/ has two child resources with the same name (IPConfig2)."}]
azurerm_network_interface.network_interface.0: network.InterfacesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[{"code":"DuplicateResourceName","message":"Resource /subscriptions//resourceGroups//providers/Microsoft.Network/networkInterfaces/ has two child resources with the same name (IPConfig1)."}]
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 18, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.7.13
Affected Resource(s)
Terraform Configuration Files
Debug Output
Terraform Version: 0.7.13
Resource ID: azurerm_network_interface.network_interface.0
Mismatch reason: attribute mismatch: ip_configuration.3947973451.load_balancer_backend_address_pools_ids.18293703
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
2016/12/06 15:45:07 [DEBUG] plugin: /usr/local/bin/terraform: plugin process exited
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"ip_configuration.3947973451.load_balancer_inbound_nat_rules_ids.2080932363":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/rdp_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "location":*terraform.ResourceAttrDiff{Old:"", New:"eastus", NewComputed:false, NewRemoved:false, NewExtra:"eastus", RequiresNew:true, Sensitive:false, Type:0x0}, "internal_fqdn":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_backend_address_pools_ids.18293703":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/backendAddressPools/BackendAddressPool", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "network_security_group_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.name":*terraform.ResourceAttrDiff{Old:"", New:"IPConfig1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.#":*terraform.ResourceAttrDiff{Old:"0", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.private_ip_address_allocation":*terraform.ResourceAttrDiff{Old:"", New:"dynamic", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"BackupServiceNIC1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "enable_ip_forwarding":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "dns_servers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "internal_dns_name_label":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.subnet_id":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/HeadlessNetwork/subnets/BackupServiceSubnet", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.585640722":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/winrm_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.private_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "resource_group_name":*terraform.ResourceAttrDiff{Old:"", New:"test", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_backend_address_pools_ids.#":*terraform.ResourceAttrDiff{Old:"0", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.subnet_id":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/HeadlessNetwork/subnets/BackupServiceSubnet", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "mac_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.public_ip_address_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tags.%":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "virtual_machine_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "private_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.load_balancer_backend_address_pools_ids.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.private_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.load_balancer_backend_address_pools_ids.18293703":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/backendAddressPools/BackendAddressPool", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "applied_dns_servers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.public_ip_address_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.load_balancer_inbound_nat_rules_ids.585640722":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/winrm_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.2080932363":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/rdp_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.name":*terraform.ResourceAttrDiff{Old:"", New:"IPConfig1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.private_ip_address_allocation":*terraform.ResourceAttrDiff{Old:"", New:"dynamic", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.3947973451.load_balancer_inbound_nat_rules_ids.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
Diff Two (usually from apply): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"tags.%":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.public_ip_address_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.#":*terraform.ResourceAttrDiff{Old:"", New:"2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.name":*terraform.ResourceAttrDiff{Old:"", New:"IPConfig1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.2080932363":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/rdp_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"BackupServiceNIC1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "mac_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.subnet_id":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/HeadlessNetwork/subnets/BackupServiceSubnet", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "enable_ip_forwarding":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "network_security_group_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "virtual_machine_id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_inbound_nat_rules_ids.585640722":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/inboundNatRules/winrm_access1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "applied_dns_servers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_backend_address_pools_ids.18293703":*terraform.ResourceAttrDiff{Old:"", New:"/subscriptions/49f1d5a7-ba66-4d22-bb84-021a0a894577/resourceGroups/test/providers/Microsoft.Network/loadBalancers/BackupService/backendAddressPools/BackendAddressPool", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "resource_group_name":*terraform.ResourceAttrDiff{Old:"", New:"test", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "private_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "location":*terraform.ResourceAttrDiff{Old:"", New:"eastus", NewComputed:false, NewRemoved:false, NewExtra:"eastus", RequiresNew:true, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.load_balancer_backend_address_pools_ids.#":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.private_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "dns_servers.#":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "internal_dns_name_label":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ip_configuration.1355756746.private_ip_address_allocation":*terraform.ResourceAttrDiff{Old:"", New:"dynamic", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "internal_fqdn":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
Expected Behavior
The NIC should be created with multiple nat rules assigned.
Actual Behavior
The text was updated successfully, but these errors were encountered: