terraform-provider-azurerm icon indicating copy to clipboard operation
terraform-provider-azurerm copied to clipboard

Support for identities on container apps environment

Open davidkarlsen opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: 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

Add properties for managed identities on container apps environment. According bicep is: https://learn.microsoft.com/en-us/azure/templates/microsoft.app/managedenvironments?pivots=deployment-language-arm-template#managedserviceidentity-1

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

azurerm_container_app_environment

Potential Terraform Configuration

identities {
...
}

References

No response

davidkarlsen avatar May 05 '24 15:05 davidkarlsen

Note: This might require you to update the go-sdk 1st.

davidkarlsen avatar May 06 '24 11:05 davidkarlsen

This would be greatly appreciated!

alexgnq avatar Jun 28 '24 07:06 alexgnq

We need this!!! Why since version 4.x does not we have this? Is there any ETA? Thank you!

rliberoff avatar Sep 23 '24 06:09 rliberoff

Support for this would be really appreciated, also facing the same issue in deployment, prefer not to use an ARM template as part of my TF code

ghost avatar Nov 25 '24 10:11 ghost

Are there any updates on this issue? I've been searching the issues and pull requests but can't seem to find anything connected to the issue at hand.

alexgnq avatar Dec 10 '24 08:12 alexgnq

a work-around is to patch it in using azapi_resource_action

resource "azapi_resource_action" "identitypatch" { type = "Microsoft.App/managedEnvironments@2024-03-01" resource_id = azurerm_container_app_environment.X_env.id method = "PATCH"

body = { identity = { type = "UserAssigned" userAssignedIdentities = { "${azurerm_user_assigned_identity.X_identity.id}" = {} } } }

response_export_values = ["*"] }

you can also swap out the type to just be "SystemAssigned"

ghost avatar Dec 10 '24 08:12 ghost

This was released with v4.73.0 https://github.com/hashicorp/terraform-provider-azurerm/releases/tag/v4.37.0 https://github.com/hashicorp/terraform-provider-azurerm/pull/29409

timbehh avatar Jul 21 '25 15:07 timbehh

This isn't working for me, the terraform applies successfully but when I check the UI it hasn't worked, and when I run the terraform it applies it again as if it doesn't exist

DavidPriceNBS avatar Jul 23 '25 09:07 DavidPriceNBS