-
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
Support for Managed Identity in Container App Job Scale Rules #26570
Comments
Hi, Any ETA on this? |
This would be great to have support for managed identity also in scale rules for container apps (not jobs). This is officially supported through ARM templates and azure CLI commands but the azurerm provider still does not support it. |
I am also missing this feature on custom_rule_type azure-queue. |
We are also missing this, could someone please look into it. 😃 |
Same problem, we really need this, thank you. |
As a workaround until it is implemented, you can use azapi to set this after creating the job: resource "azapi_update_resource" "example" {
type = "Microsoft.App/jobs@2024-10-02-preview"
resource_id = azurerm_container_app_job.example.id
body = {
properties = {
configuration = {
eventTriggerConfig = {
scale = {
rules = [
{
auth = []
identity = azurerm_user_assigned_identity.example.id
}
]
}
}
}
}
}
depends_on = [
azurerm_container_app_job.example,
azurerm_user_assigned_identity.example
]
} |
Is there an existing issue for this?
Community Note
Description
In Azure Container App Jobs they have recently added support for authenticating using a managed identity in scaling rules. This allows rules to be added without the need for less secure methods (such as PATs, SAS tokens, or connection strings) to be used for the scaling rules' authentication.
Either user assigned or system identities can be used.
All scaling rules should have an
identity
property that accepts the resource ID for a user assigned identity orsystem
in the case of a system assigned identity.New or Affected Resource(s)/Data Source(s)
azurerm_container_app_job
Potential Terraform Configuration
References
Implementation discussion: microsoft/azure-container-apps#592
API Reference: https://learn.microsoft.com/en-us/rest/api/containerapps/container-apps/create-or-update?view=rest-containerapps-2024-02-02-preview&tabs=HTTP#customscalerule
Azcli example: https://learn.microsoft.com/en-us/azure/container-apps/scale-app?pivots=azure-cli#authentication-1
The text was updated successfully, but these errors were encountered: