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’ll 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 · 3 comments · Fixed by #26179 or #26432
Closed
1 task done

Support for azurerm_communication_service_email_association #22995

timja opened this issue Aug 17, 2023 · 3 comments · Fixed by #26179 or #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"
      ]    
    }
  })
}

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.