简体   繁体   中英

Azure Event Grid topic subscription with Service Bus queue handler

I'd like to set up an Event Grid Subscription for a topic with a Service Bus queue as the handler. The Service Bus queue lives in a separate subscription from the Event Grid topic; user accounts do not have standing access to both subscriptions. Therefore, I'm wondering if there is a way to configure the handler with the Service Bus connection string. Is this currently possible? Are there any work-arounds?

As Roman said, for such resources belonging to different subscriptions, you can use the Event Grid Trigger in Azure Function. You can configure the endpoint of the Event Grid topic subscription to an Azure Function, and then use this Azure Function to pass information to the Service Bus queue in another subscription.

Today, the only way to directly do this is the user creating the Event Subscription must have permissions to write to the Service Bus queue, so you would have to grant at least that level of access.

Once Managed Service Identities lands in Event Grid for publishing, you'll be able to assign write access to the MSI and then direct Event Grid to use that MSI with the Event Subscription for publish.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM