You are developing a V4 Azure Function App. A function within the app is triggered by messages from an Azure Queue Storage queue named incoming-orders. The function is configured with a connection property value of OrderStorageConnection.
You want to configure the Function App to use its system-assigned managed identity to connect to the queue in a storage account named orderstore instead of using a connection string.
Which application setting should you add to the Function App?
- OrderStorageConnection__queueServiceUri with the value https://orderstore.queue.core.windows.netAnswer
- BOrderStorageConnection with the value https://orderstore.queue.core.windows.net
- COrderStorageConnection__serviceUri with the value https://orderstore.queue.core.windows.net
- DOrderStorageConnection__credential with the value SystemAssigned
Answer
OrderStorageConnection__queueServiceUri with the value https://orderstore.queue.core.windows.net
The correct option is the one specifying OrderStorageConnection__queueServiceUri with the service endpoint. For Azure Queue Storage triggers and bindings, identity-based connections require the application setting key to consist of the connection name prefix followed by the service-specific suffix '__queueServiceUri'. Since the system-assigned managed identity is used by default when no credential property is set, providing the endpoint URL is sufficient to establish the connection.
Step-by-Step Solution
Key Concept
Configuring Identity-Based Connections for Azure Functions Triggers and Bindings