A health monitoring system uses Azure Event Hubs to collect real-time patient telemetry. You are configuring a .NET host application to consume these events using the EventProcessorClient class. You create an Azure Blob Storage container to serve as the checkpoint store. The application is configured to authenticate using a system-assigned managed identity that has been granted the Storage Blob Data Reader role on the storage container. When the application starts, it throws an exception during initialization because it cannot acquire partition leases. You need to ensure the application can successfully coordinate partition ownership and write checkpoints. Which action should you perform?
- AConfigure the application to use an Azure Queue Storage queue as the checkpoint store and grant the identity the Storage Queue Data Contributor role.
- Grant the system-assigned managed identity the Storage Blob Data Contributor role on the storage container.Answer
- CReconfigure the application to use a user-assigned managed identity, as system-assigned managed identities cannot be authorized for lease operations.
- DInitialize a BlobLeaseClient in the application startup code to manually release any active partition leases before starting the event processor.
Answer
Grant the system-assigned managed identity the Storage Blob Data Contributor role on the storage container.
The correct answer provides the necessary permissions for the EventProcessorClient to interact with the checkpoint store. Because the processor needs to create checkpoints and acquire/renew leases on partition ownership blobs, it requires read, write, and delete permissions on the container's blobs. The Storage Blob Data Contributor role grants these data plane permissions, resolving the authorization error.
Step-by-Step Solution
Key Concept
Azure Event Hubs EventProcessorClient storage requirements and Azure RBAC role configurations