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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for azurerm_communication_service_email_association #22995

Closed
1 task done
timja opened this issue Aug 17, 2023 · 2 comments 路 Fixed by #26179 路 May be fixed by #26432
Closed
1 task done

Support for azurerm_communication_service_email_association #22995

timja opened this issue Aug 17, 2023 · 2 comments 路 Fixed by #26179 路 May be fixed by #26432

Comments

@timja
Copy link
Contributor

timja commented Aug 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

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 and review the contribution guide to help.

Description

Linking of these two resources:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/communication_service
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/email_communication_service

In the portal from the communication services:
image

image

Note it requires a verified domain already created in the email_communication_service which is covered in #22549

New or Affected Resource(s)/Data Source(s)

azurerm_communication_service_email_association

Potential Terraform Configuration

resource "azurerm_communication_service_email_association"
   communication_service_id = "azurerm_communication_service.this.id"
   email_communication_service = "azurerm_email_communication_service.this.id"
}

References

#22549
#21520 (comment)

@wgorczyca
Copy link

Just in case if someone needs a temporary workaround (with azapi provider)

resource "azapi_update_resource" "this" {
  type      = "Microsoft.Communication/communicationServices@2022-07-01-preview"
  resource_id = azurerm_communication_service.this.id

  body = jsonencode({
    properties = {
      linkedDomains = [
        "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/example-rg/providers/Microsoft.Communication/emailServices/example-ecs/domains/customdomain.com"
      ]    
    }
  })
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment