-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_container_app - Support pulling container images from ACR using managed identity #20412
Comments
This is causing us an issue as well - we rely on managed identity against the container app instance to access services such as key vaults. Currently there is no way of setting managed identity if you use the e.g. |
Actually this is already possible, it just wasn't documented in azurerm version 3.43. I updated the documentation here #20411 |
We're in the same boat. It would be great to be able to do this as this option was available to us when we used registry {
server = "<private_registry>.azurecr.io"
identity = data.azurerm_user_assigned_identity.container_app.id
} It is great that @audunsolemdal updated the docs with respect to being able to set a managed identity on a container app. The core issue however remains that we cannot use managed identity with container apps to pull images from a private registry with the current |
I took a stab at adding support for this in #20466 |
This functionality has been released in v3.44.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Description
Currently it does not seem possible to use a managed identity to pull images from an Azure Container Registry.
Using the azapi_resource for type
Microsoft.App/containerApps
, one could do the followingWhile the current config has both username and password_secret_name as required
New or Affected Resource(s)/Data Source(s)
azurerm_container_app
Potential Terraform Configuration
No response
References
No response
The text was updated successfully, but these errors were encountered: