Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_network_interface_backend_address_pool_association fails on refreshing due to NIC not found #8277

Closed
revchris opened this issue Aug 27, 2020 · 2 comments

Comments

@revchris
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform 0.12
AzureRm 1.25.0

Terraform Configuration Files

#Associate Nic with Backend Pool
resource "azurerm_network_interface_backend_address_pool_association" "nic1" {
  network_interface_id    = module.virtual_machines.nic_id[0]
  ip_configuration_name   = "IPC-ENT-VLENTSPLFWD01-P-CUS01"
  backend_address_pool_id = azurerm_lb_backend_address_pool.splunkpool.id
}
resource "azurerm_network_interface_backend_address_pool_association" "nic2" {
  network_interface_id    = module.virtual_machines.nic_id[1]
  ip_configuration_name   = "IPC-ENT-VLENTSPLFWD02-P-CUS01"
  backend_address_pool_id = azurerm_lb_backend_address_pool.splunkpool.id
}

Panic Output


module.virtual_machines.azurerm_virtual_machine.linuxVm[1]: Refreshing state... [id=/subscriptions/<SUB>/resourceGroups/RG-ENT-APP2383-P-CUS01/providers/Microsoft.Compute/virtualMachines/VLENTSPLFWD02P]
module.virtual_machines.azurerm_virtual_machine.linuxVm[0]: Refreshing state... [id=/subscriptions/<SUB>/resourceGroups/RG-ENT-APP2383-P-CUS01/providers/Microsoft.Compute/virtualMachines/VLENTSPLFWD01P]
azurerm_network_interface_backend_address_pool_association.nic1: Refreshing state... [id=/subscriptions/<SUB>/resourceGroups/RG-ENT-APP2383-P-CUS01/providers/Microsoft.Network/networkInterfaces/NIC-ENT-VLENTSPLFWD01-P-CUS01/ipConfigurations/IPC-ENT-VLENTSPLFWD01-P-CUS01|/subscriptions/<SUB>/resourceGroups/RG-ENT-APP2383-P-CUS01/providers/Microsoft.Network/loadBalancers/LB-ENT-APP2383-P-CUS01/backendAddressPools/SplunkBackEndAddressPool]
azurerm_network_interface_backend_address_pool_association.nic2: Refreshing state... 
Error: Network Interface "NIC-ENT-VLENTSPLFWD02-P-CUS01" (Resource Group "RG-ENT-APP2383-P-CUS01") was not found!

Error: Network Interface "NIC-ENT-VLENTSPLFWD01-P-CUS01" (Resource Group "RG-ENT-APP2383-P-CUS01") was not found!

##[error]PowerShell exited with code '1'

Expected Behavior

refresh should run successfully and find out that all resources related to the VM and NIC's

Actual Behavior

Error's out with output from above

Steps to Reproduce

Run

  1. terraform plan

Important Factoids

References

#7041

  • #0000
@tombuildsstuff
Copy link
Contributor

hi @revchris

Thanks for opening this issue :)

Taking a look through this appears to be a duplicate of #2491 - rather than having multiple issues open tracking the same thing I'm going to close this issue in favour of that one; would you mind subscribing to #2491 for updates?

Thanks!

@ghost
Copy link

ghost commented Sep 27, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants