You are developing a solution that routes resource group lifecycle events to an Azure Storage Queue. The storage account is secured, and public access is restricted. You need to configure Azure Event Grid to deliver these events securely using a user-assigned managed identity. Which sequence of steps should you perform to complete the configuration? To answer, arrange all actions from the list of actions in the correct order.
- 1Create a user-assigned managed identity in Microsoft Entra ID.
- 2Associate the user-assigned managed identity with the Event Grid system topic.
- 3Assign the Storage Queue Data Message Sender role to the user-assigned managed identity on the target storage queue.
- 4Create the event subscription, specifying the storage queue as the endpoint and selecting the user-assigned identity for delivery.
Answer
To configure secure Event Grid delivery to an Azure Storage Queue using a user-assigned managed identity, you must first create the identity, associate it with the Event Grid system topic, grant it the Storage Queue Data Message Sender role on the queue, and then create the event subscription specifying the queue endpoint and the identity for delivery.
First, the user-assigned managed identity must be created in Microsoft Entra ID. Next, this identity must be associated with the Event Grid system topic so that the topic can leverage it. Then, the identity must be granted the Storage Queue Data Message Sender role at the scope of the target storage queue to allow message writing. Finally, the event subscription can be created, referencing the target queue as the endpoint and using the user-assigned managed identity for delivery.
Step-by-Step Solution
Key Concept
Configuring managed identities for Event Grid delivery