terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Support for identities on container apps environment
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
Note: This might require you to update the go-sdk 1st.
This would be greatly appreciated!
We need this!!! Why since version 4.x does not we have this? Is there any ETA? Thank you!
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
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.
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"
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
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