Open gibbcode opened 2 months ago
Thanks for raising this issue. Seems I can't reproduce this issue with below tf config. Could you try below tf config to see if the issue still exists? Thanks.
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-pdnsar-test01"
location = "westeurope"
}
resource "azurerm_private_dns_zone" "test" {
name = "acctestzonetest01.com"
resource_group_name = azurerm_resource_group.test.name
}
resource "azurerm_private_dns_a_record" "test" {
name = "myarecordtest01"
resource_group_name = azurerm_resource_group.test.name
zone_name = azurerm_private_dns_zone.test.name
ttl = 3600
records = ["1.2.3.4"]
}
Is there an existing issue for this?
Community Note
Terraform Version
1.5.6
AzureRM Provider Version
3.115.0
Affected Resource(s)/Data Source(s)
azurerm_private_dns_a_record
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
DNS Record should have been created.
Using the same service principal to authenticate, using the same private DNS zone and resource group, i'm able to create the same Private DNS records without a problem from PowerShell. Using "az network private-dns record-set a add-record"
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
The service principal used by Terraform and referenced in the errors is permissioned as a "Private DNS Zone Contributor" and is able to create the Private DNS record defined in Terraform using PowerShell without a problem
References
No response