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
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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.
When destroying an azurerm_private_endpoint, the associated Network Interface Card (NIC) is taking approximately 10 minutes to be deleted. Although Terraform indicates that the private endpoint destruction is complete, the NIC deletion process lingers.
Consequently, when attempting to destroy the azurerm_cosmosdb_account, it fails with a PreconditionFailed error due to the NIC deletion operation still being in progress.
When creating this private endpoint, the NIC is created automatically. This process does not require separate code to create the NIC
module.cosmosdb.azurerm_private_endpoint.cosmosdb_private_endpoint: Destruction complete after 1m53s
module.cosmosdb.azurerm_cosmosdb_account.account: Destroying... [id=/subscriptions/...
│ Error: deleting CosmosDB Account "cosno-test0f0ukw" (Resource Group "rg-cloud-ops-1"): performing DatabaseAccountsDelete: unexpected status 412 (412 Precondition Failed) with response: {"code":"PreconditionFailed","message":"There is already an operation in progress which requires exclusive lock on this service cosno-test0f0ukw. Please retry the operation after sometime.\r\nActivityId: c0cf12bf-fa57-4abf-8b85-3e5095c15223, Microsoft.Azure.Documents.Common/2.14.0"}
Expected Behaviour
azurerm_private_endpoint must show Destruction complete after NIC is already destroyed.
Actual Behaviour
NIC is taking around 10 minutes to be deleted, however log shows that azurerm_private_endpoint is destroyed.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue. It sounds like service API issue since API should return after the resource is completely deleted. I filed an issue on Swagger for tracking.
Is there an existing issue for this?
Community Note
When destroying an
azurerm_private_endpoint
, the associated Network Interface Card (NIC) is taking approximately 10 minutes to be deleted. Although Terraform indicates that the private endpoint destruction is complete, the NIC deletion process lingers.Consequently, when attempting to destroy the
azurerm_cosmosdb_account
, it fails with aPreconditionFailed
error due to the NIC deletion operation still being in progress.When creating this private endpoint, the NIC is created automatically. This process does not require separate code to create the NIC
Terraform Version
1.4.6
AzureRM Provider Version
4.19.0
Affected Resource(s)/Data Source(s)
azurerm_private_endpoint, azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
azurerm_private_endpoint
must showDestruction complete
after NIC is already destroyed.Actual Behaviour
NIC is taking around 10 minutes to be deleted, however log shows that
azurerm_private_endpoint
is destroyed.Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: