hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.65k forks source link

Azure Communication Service connected email domain gets deleted after updating the tag through Terraform #26495

Open sahadkp-dlt opened 4 months ago

sahadkp-dlt commented 4 months ago

Is there an existing issue for this?

Community Note

Terraform Version

v1.8.3

AzureRM Provider Version

3.65.0

Affected Resource(s)/Data Source(s)

azurerm_communication_service

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_communication_service" "this" {
  name = "${var.project}-${var.environment}-communication-service"

  resource_group_name = var.resource_group.name
  data_location       = var.conf.data_location

  tags = var.tags
}

Debug Output/Panic Output

Communication service connected email domain is deleted

Note:
Their is no terraform argument-reference in the azurerm_communication_service for connecting email domain created in azurerm_email_communication_service

Expected Behaviour

No response

Actual Behaviour

communication service connected email domain is deleted

Steps to Reproduce

No response

Important Factoids

No response

References

No response

neil-yechenwei commented 4 months ago

Thanks for raising this issue. I can't reproduce this issue with below tf config that is similar with yours. Could you try latest tf azurerm provider and below tf config to see if the issue still exists? Thanks.

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "test" {
  name     = "acctestRG-communicationservice-test01"
  location = "westeurope"
}

resource "azurerm_communication_service" "test" {
  name                = "acctest-CommunicationService-test01"
  resource_group_name = azurerm_resource_group.test.name
  data_location       = "United States"

  tags = {
    env = "Test2"
  }
}