Open JackBruceShell opened 3 months ago
Thanks for raising this issue. Could you try to add "depends_on" to explicitly build the dependency among the resources in the tf config to see if the issue still exists? Thanks.
depends_on should not be needed, because there is already a depency between the resources
For me a roleback to version 3.92 solved this problem, i did not test already which of the higher versions work. Sometime i also had this error message with a user managed identity. Maybe its something with the new sdk versions
UPDATE: Version 3.92 did not solve this problem. I have it as well!
I am also having issues regards to virtual network links.
Issue: Inconsistent Results with azurerm_private_dns_zone_virtual_network_link
Description:
Encountering issues creating/destroying Virtual Link resources in Azure using azurerm
provider version ~>3.75.0
. Error message received:
Error: Provider produced inconsistent result after apply
When applying changes to azurerm_private_dns_zone_virtual_network_link.kv-vlink, provider "provider["registry.terraform.io/hashicorp/azurerm"].networkhub-subscription" produced an unexpected new value: Root resource was present, but now absent.
Code:
data "azurerm_private_dns_zone" "kv_private_dns" {
provider = azurerm.networkhub-subscription
name = "privatelink.vaultcore.azure.net"
resource_group_name = "RGH-P-PrivateDNSZones-rg"
}
Additional Info:
Provider: registry.terraform.io/hashicorp/azurerm
Provider Version: ~>3.75.0
This seems to be a provider bug. Any insights or assistance on resolving this issue would be appreciated.
We did some further investigation. We get this error only on at Region West Europe. Running the same code in Germany West Central worked perfectly. Due to the fact that region west europe is under heavy duty and almost full this may be hard to fix
We also encounter this issue. Terraform version : 1.8.4 AzureRM version : 3.90.0 Affected Resource(s)/Data Source(s) : azurerm_private_dns_zone_virtual_network_link Region : france central
Our code : (##) link dns zone private with hub vnet resource "azurerm_private_dns_zone_virtual_network_link" "hub-dnszone-network_links" { provider = azurerm.hub
name = "hub-dnszone-vnetlink" resource_group_name = "hub-network-rg" private_dns_zone_name = azurerm_private_dns_zone.hub-private-dns-zones.name virtual_network_id = data.azurerm_virtual_network.hub-network-vnet.id tags = local.tags_api }
data "azurerm_virtual_network" "hub-network-vnet" { provider = azurerm.hub
name = "hub-network-vnet" resource_group_name = "hub-network-rg" }
The output :
│ Error: Provider produced inconsistent result after apply │ │ When applying changes to │ module.container_app_environment.azurerm_private_dns_zone_virtual_network_link.hub-dnszone-network_links, │ provider │ "module.container_app_environment.provider[\"registry.terraform.io/hashicorp/azurerm\"].hub" │ produced an unexpected new value: Root object was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker. ╵ ╷ │ Error: creating/updating Virtual Network Link (Subscription: "57a2cf7c-e2c6-429f-95b7-77ca665522bb" │ Resource Group Name: "hub-network-rg" │ Private Dns Zone Name: "politesea-xxxxxxxx.francecentral.azurecontainerapps.io" │ Virtual Network Link Name: "hub-dnszone-vnetlink"): performing CreateOrUpdate: unexpected status 409 with response: {"code":"Conflict","message":"Another operation is pending for requested object. Operation group '\/operations\/groups\/id\/|virtualNetworkLinks|57a2cf7c-e2c6-429f-95b7-77ca665522bb|hub-network-rg|politesea-xxxxxxxx.francecentral.azurecontainerapps.io|hub-dnszone-vnetlink' was created simultaneously by another operation."} │ │ with module.container_app_environment.azurerm_private_dns_zone_virtual_network_link.env-dnszone-default-network-links, │ on ../../../infrastructure-tf-modules/azurerm/container_app_environment/main.tf line 77, in resource "azurerm_private_dns_zone_virtual_network_link" "env-dnszone-default-network-links": │ 77: resource "azurerm_private_dns_zone_virtual_network_link" "env-dnszone-default-network-links" { │ ╵
The DNS virtual network link is created in Azure but not added to the state file.
Could anyone please have a look to this issue and create a fix? Thank you in advance
Is there an existing issue for this?
Community Note
Terraform Version
Latest
AzureRM Provider Version
3.95.0
Affected Resource(s)/Data Source(s)
azurerm_private_dns_zone_virtual_network_link
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No issues with Virtual Link resource when trying to provision other resources.
Actual Behaviour
Terraform apply failed with error
Error: Provider produced inconsistent result after apply │ │ When applying changes to │ module.nsd-ase.azurerm_private_dns_zone_virtual_network_link.main[0], │ provider "provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced │ an unexpected new value: Root object was present, but now absent. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker.
Steps to Reproduce
Unique use case and can present the issue on a call if needed.
Important Factoids
No response
References
No response