You are developing a Bicep template to deploy an Azure Container App named `order-processor`. The application must dynamically scale using KEDA based on the length of an Azure Service Bus queue named `orders-queue`. The Service Bus namespace is `sb-orders.servicebus.windows.net`.
Security requirements dictate that no connection strings or secrets may be stored within the Container App's settings or configuration. You have created a User-Assigned Managed Identity named `order-processor-identity` with the resource ID `/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity` and assigned it the 'Azure Service Bus Data Receiver' role.
Which Bicep configuration block correctly configures the managed identity at the resource level and the KEDA scale rule to use this identity for passwordless authentication?
- identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity': {}
}
}
properties: {
template: {
scale: {
minReplicas: 1
maxReplicas: 10
rules: [
{
name: 'queue-scaler'
custom: {
type: 'azure-servicebus'
metadata: {
queueName: 'orders-queue'
namespace: 'sb-orders.servicebus.windows.net'
messageCount: '10'
}
identity: '/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity'
}
}
]
}
}
}Cevap - Bidentity: {
type: 'UserAssigned'
userAssignedIdentities: {
'/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity': {}
}
}
properties: {
template: {
scale: {
minReplicas: 1
maxReplicas: 10
rules: [
{
name: 'queue-scaler'
custom: {
type: 'azure-servicebus'
metadata: {
queueName: 'orders-queue'
namespace: 'sb-orders.servicebus.windows.net'
messageCount: '10'
}
identity: 'system'
}
}
]
}
}
} - Cidentity: {
type: 'UserAssigned'
userAssignedIdentities: {
'/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity': {}
}
}
properties: {
template: {
scale: {
minReplicas: 1
maxReplicas: 10
rules: [
{
name: 'queue-scaler'
custom: {
type: 'azure-servicebus'
metadata: {
queueName: 'orders-queue'
namespace: 'sb-orders.servicebus.windows.net'
messageCount: '10'
}
identity: 'order-processor-identity'
}
}
]
}
}
} - Didentity: {
type: 'UserAssigned'
userAssignedIdentities: {
'/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/order-processor-identity': {}
}
}
properties: {
template: {
scale: {
minReplicas: 1
maxReplicas: 10
rules: [
{
name: 'queue-scaler'
custom: {
type: 'azure-servicebus'
metadata: {
queueName: 'orders-queue'
namespace: 'sb-orders.servicebus.windows.net'
messageCount: '10'
}
auth: [
{
triggerParameter: 'connection'
secretRef: 'order-processor-identity'
}
]
}
}
]
}
}
}