Created
May 14, 2024 11:08
-
-
Save ashleysommer/4a6767bd3b774eebb2b3f7718926e850 to your computer and use it in GitHub Desktop.
Error from azurerm_network_interface_backend_address_pool_association: CannotMixIPBasedAddressesAndIPConfigurationsOnLoadBalancerBackendAddressPool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2024-05-14T21:05:13.346+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: Determining which Resource Providers require Registration: timestamp="2024-05-14T21:05:13.345+1000" | |
2024-05-14T21:05:13.346+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: All required Resource Providers are registered: timestamp="2024-05-14T21:05:13.345+1000" | |
azurerm_network_interface_backend_address_pool_association.my_nic_address_pool: Creating... | |
2024-05-14T21:05:13.347+1000 [INFO] Starting apply for azurerm_network_interface_backend_address_pool_association.my_nic_address_pool | |
2024-05-14T21:05:13.348+1000 [DEBUG] azurerm_network_interface_backend_address_pool_association.my_nic_address_pool: applying the planned Create change | |
2024-05-14T21:05:13.348+1000 [INFO] provider.terraform-provider-azurerm_v3.103.1_x5: preparing arguments for Network Interface <-> Load Balancer Backend Address Pool Association creation.: timestamp="2024-05-14T21:05:13.348+1000" | |
2024-05-14T21:05:13.348+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: Locking "azurerm_network_interface.nic-1": timestamp="2024-05-14T21:05:13.348+1000" | |
2024-05-14T21:05:13.348+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: Locked "azurerm_network_interface.nic-1": timestamp="2024-05-14T21:05:13.348+1000" | |
2024-05-14T21:05:13.348+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: AzureRM Request: | |
GET /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1?api-version=2022-07-01 HTTP/1.1 | |
Host: management.azure.com | |
User-Agent: Go/go1.21.6 (amd64-linux) go-autorest/v14.2.1 tombuildsstuff/kermit/v0.20240122.1123108 network/2022-07-01 HashiCorp Terraform/1.8.3 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/3.103.1 pid-222c6c49-1b0a-5959-a213-6608f9eb8820 | |
X-Ms-Correlation-Request-Id: 3380370e-30fc-17da-5835-cecc6b937014 | |
Accept-Encoding: gzip: timestamp="2024-05-14T21:05:13.348+1000" | |
2024-05-14T21:05:13.704+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: AzureRM Response for https://management.azure.com/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1?api-version=2022-07-01: | |
HTTP/2.0 200 OK | |
Content-Length: 2277 | |
Cache-Control: no-cache | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 14 May 2024 11:05:03 GMT | |
Etag: W/"17f8be9d-6d07-4edc-b0c9-61d2ea121bf8" | |
Expires: -1 | |
Pragma: no-cache | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
X-Cache: CONFIG_NOCACHE | |
X-Content-Type-Options: nosniff | |
X-Ms-Arm-Service-Request-Id: 23af9d5a-81e6-494a-bacb-6c48e421396a | |
X-Ms-Correlation-Request-Id: 3380370e-30fc-17da-5835-cecc6b937014 | |
X-Ms-Ratelimit-Remaining-Subscription-Reads: 11999 | |
X-Ms-Request-Id: 36c477f9-6a4a-4350-8d11-4935296623fd | |
X-Ms-Routing-Request-Id: AUSTRALIAEAST:20240514T110503Z:81683f1b-613b-42ef-a105-efe1eb0c5ae8 | |
X-Msedge-Ref: Ref A: D5D380A0F8FC4760B2968436E88FAE16 Ref B: SYD03EDGE1405 Ref C: 2024-05-14T11:05:02Z | |
{ | |
"name": "nic-1", | |
"id": "/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1", | |
"etag": "W/\"17f8be9d-6d07-4edc-b0c9-61d2ea121bf8\"", | |
"tags": {}, | |
"properties": { | |
"provisioningState": "Succeeded", | |
"resourceGuid": "2163a589-fff9-4174-8012-d071ae24d5f0", | |
"ipConfigurations": [ | |
{ | |
"name": "nic-ip-config", | |
"id": "/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1/ipConfigurations/nic-ip-config", | |
"etag": "W/\"17f8be9d-6d07-4edc-b0c9-61d2ea121bf8\"", | |
"type": "Microsoft.Network/networkInterfaces/ipConfigurations", | |
"properties": { | |
"provisioningState": "Succeeded", | |
"privateIPAddress": "10.0.1.4", | |
"privateIPAllocationMethod": "Static", | |
"subnet": { | |
"id": "/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/virtualNetworks/vnet-1/subnets/snet-1" | |
}, | |
"primary": true, | |
"privateIPAddressVersion": "IPv4", | |
"applicationSecurityGroups": [ | |
{ | |
"id": "/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/applicationSecurityGroups/asg-1" | |
} | |
] | |
} | |
} | |
], | |
"dnsSettings": { | |
"dnsServers": [], | |
"appliedDnsServers": [], | |
"internalDomainNameSuffix": "343y3shjrylufpz5jufohpsuoe.px.internal.cloudapp.net" | |
}, | |
"macAddress": "00-22-48-10-28-4F", | |
"enableAcceleratedNetworking": false, | |
"vnetEncryptionSupported": false, | |
"enableIPForwarding": false, | |
"disableTcpStateTracking": false, | |
"primary": true, | |
"virtualMachine": { | |
"id": "/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Compute/virtualMachines/vm-1" | |
}, | |
"hostedWorkloads": [], | |
"tapConfigurations": [], | |
"nicType": "Standard", | |
"allowPort25Out": false, | |
"auxiliaryMode": "None" | |
}, | |
"type": "Microsoft.Network/networkInterfaces", | |
"location": "australiaeast", | |
"kind": "Regular" | |
}: timestamp="2024-05-14T21:05:13.704+1000" | |
2024-05-14T21:05:13.704+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: AzureRM Request: | |
PUT /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1?api-version=2022-07-01 HTTP/1.1 | |
Host: management.azure.com | |
User-Agent: Go/go1.21.6 (amd64-linux) go-autorest/v14.2.1 tombuildsstuff/kermit/v0.20240122.1123108 network/2022-07-01 HashiCorp Terraform/1.8.3 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/3.103.1 pid-222c6c49-1b0a-5959-a213-6608f9eb8820 | |
Content-Length: 1314 | |
Content-Type: application/json; charset=utf-8 | |
X-Ms-Correlation-Request-Id: 3380370e-30fc-17da-5835-cecc6b937014 | |
Accept-Encoding: gzip | |
{"id":"/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1","location":"australiaeast","properties":{"auxiliaryMode":"None","disableTcpStateTracking":false,"dnsSettings":{"dnsServers":[]},"enableAcceleratedNetworking":false,"enableIPForwarding":false,"ipConfigurations":[{"id":"/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1/ipConfigurations/nic-ip-config","name":"nic-ip-config","properties":{"applicationSecurityGroups":[{"id":"/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/applicationSecurityGroups/asg-1"}],"loadBalancerBackendAddressPools":[{"id":"/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/loadBalancers/lb-1/backendAddressPools/lb-backend-pool-1"}],"primary":true,"privateIPAddress":"10.0.1.4","privateIPAddressVersion":"IPv4","privateIPAllocationMethod":"Static","subnet":{"id":"/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/virtualNetworks/vnet-1/subnets/snet-1"}},"type":"Microsoft.Network/networkInterfaces/ipConfigurations"}],"nicType":"Standard"},"tags":{}}: timestamp="2024-05-14T21:05:13.704+1000" | |
2024-05-14T21:05:15.414+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: AzureRM Response for https://management.azure.com/subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/networkInterfaces/nic-1?api-version=2022-07-01: | |
HTTP/2.0 400 Bad Request | |
Content-Length: 397 | |
Cache-Control: no-cache | |
Content-Type: application/json; charset=utf-8 | |
Date: Tue, 14 May 2024 11:05:04 GMT | |
Expires: -1 | |
Pragma: no-cache | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
X-Cache: CONFIG_NOCACHE | |
X-Content-Type-Options: nosniff | |
X-Ms-Arm-Service-Request-Id: d42ec26b-4247-4ad3-b120-d4bad398d928 | |
X-Ms-Correlation-Request-Id: 3380370e-30fc-17da-5835-cecc6b937014 | |
X-Ms-Ratelimit-Remaining-Subscription-Writes: 1199 | |
X-Ms-Request-Id: af2ec724-a072-4ef3-856c-a2e8a2b5f2a9 | |
X-Ms-Routing-Request-Id: AUSTRALIACENTRAL:20240514T110504Z:87354e8c-ac6b-49d8-9074-9a1715565226 | |
X-Msedge-Ref: Ref A: 1F9EBB96DC0F4932ABE80D9D175BCBBD Ref B: SYD03EDGE1405 Ref C: 2024-05-14T11:05:03Z | |
{ | |
"error": { | |
"code": "CannotMixIPBasedAddressesAndIPConfigurationsOnLoadBalancerBackendAddressPool", | |
"message": "Mixing backend ipconfigurations and IPAddresses in backend pool /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/loadBalancers/lb-1/backendAddressPools/lb-backend-pool-1 is not allowed.", | |
"details": [] | |
} | |
}: timestamp="2024-05-14T21:05:15.414+1000" | |
2024-05-14T21:05:15.414+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: Unlocking "azurerm_network_interface.nic-1": timestamp="2024-05-14T21:05:15.414+1000" | |
2024-05-14T21:05:15.414+1000 [DEBUG] provider.terraform-provider-azurerm_v3.103.1_x5: Unlocked "azurerm_network_interface.nic-1": timestamp="2024-05-14T21:05:15.414+1000" | |
2024-05-14T21:05:15.414+1000 [ERROR] provider.terraform-provider-azurerm_v3.103.1_x5: Response contains error diagnostic: @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_severity=ERROR tf_rpc=ApplyResourceChange tf_provider_addr=provider @module=sdk.proto diagnostic_detail="" diagnostic_summary="updating Backend Address Pool Association for Network Interface: (Name \"nic-1\" / Resource Group \"minimal_rg\"): network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"CannotMixIPBasedAddressesAndIPConfigurationsOnLoadBalancerBackendAddressPool\" Message=\"Mixing backend ipconfigurations and IPAddresses in backend pool /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/loadBalancers/lb-1/backendAddressPools/lb-backend-pool-1 is not allowed.\" Details=[]" tf_proto_version=5.4 tf_req_id=64e7934f-b59a-8270-d003-04ce39affe55 tf_resource_type=azurerm_network_interface_backend_address_pool_association timestamp="2024-05-14T21:05:15.414+1000" | |
2024-05-14T21:05:15.424+1000 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot | |
2024-05-14T21:05:15.424+1000 [ERROR] vertex "azurerm_network_interface_backend_address_pool_association.my_nic_address_pool" error: updating Backend Address Pool Association for Network Interface: (Name "nic-1" / Resource Group "minimal_rg"): network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="CannotMixIPBasedAddressesAndIPConfigurationsOnLoadBalancerBackendAddressPool" Message="Mixing backend ipconfigurations and IPAddresses in backend pool /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/loadBalancers/lb-1/backendAddressPools/lb-backend-pool-1 is not allowed." Details=[] | |
╷ | |
│ Error: updating Backend Address Pool Association for Network Interface: (Name "nic-1" / Resource Group "minimal_rg"): network.InterfacesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="CannotMixIPBasedAddressesAndIPConfigurationsOnLoadBalancerBackendAddressPool" Message="Mixing backend ipconfigurations and IPAddresses in backend pool /subscriptions/f9226acc-94d1-46a8-af99-88fb2757df4a/resourceGroups/minimal_rg/providers/Microsoft.Network/loadBalancers/lb-1/backendAddressPools/lb-backend-pool-1 is not allowed." Details=[] | |
│ | |
│ with azurerm_network_interface_backend_address_pool_association.my_nic_address_pool, | |
│ on main.tf line 132, in resource "azurerm_network_interface_backend_address_pool_association" "my_nic_address_pool": | |
│ 132: resource "azurerm_network_interface_backend_address_pool_association" "my_nic_address_pool" { | |
│ | |
╵ | |
2024-05-14T21:05:15.427+1000 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" | |
2024-05-14T21:05:15.433+1000 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/azurerm/3.103.1/linux_amd64/terraform-provider-azurerm_v3.103.1_x5 pid=3013732 | |
2024-05-14T21:05:15.433+1000 [DEBUG] provider: plugin exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment