You are designing a serverless solution that uses Azure Functions V4 to process messages from an Azure Service Bus queue. The architecture must comply with the following operational and security requirements:
1. The Service Bus namespace is configured with a private endpoint, and all public network access is disabled.
2. The Function App must scale dynamically (including scaling to zero instances) based on the volume of messages in the queue.
3. No connection strings or secrets can be stored in the Function App settings or in Azure Key Vault.
4. The Function App must authenticate to the Service Bus namespace using a user-assigned managed identity named func-identity.
Which combination of hosting plan and application settings should you configure for the Function App?
- AHosting Plan: Consumption
Application Settings:
- WEBSITE_RUNTIME_SCALE_MONITORING_ENABLED = 1
- ServiceBusConnection__fullyQualifiedNamespace = sb-namespace.servicebus.windows.net
- ServiceBusConnection__credential = managedidentity
- ServiceBusConnection__clientId = <client-id-of-func-identity> - Hosting Plan: Premium (Elastic Premium)
Application Settings:
- WEBSITE_RUNTIME_SCALE_MONITORING_ENABLED = 1
- ServiceBusConnection__fullyQualifiedNamespace = sb-namespace.servicebus.windows.net
- ServiceBusConnection__credential = managedidentity
- ServiceBusConnection__clientId = <client-id-of-func-identity>Cevap - CHosting Plan: Premium (Elastic Premium)
Application Settings:
- WEBSITE_RUNTIME_SCALE_MONITORING_ENABLED = 1
- ServiceBusConnection__fullyQualifiedNamespace = sb-namespace.servicebus.windows.net
- ServiceBusConnection__credential = managedidentity
- ServiceBusConnection__identityId = <resource-id-of-func-identity> - DHosting Plan: Premium (Elastic Premium)
Application Settings:
- WEBSITE_RUNTIME_SCALE_MONITORING_ENABLED = 1
- ServiceBusConnection = @KeyVault(SecretUri=https://kv-name.vault.azure.net/secrets/sb-conn/)