I met a deployment failure when I deploy eventSubscription which Topic type is EventGrid and endpoint Type is ServiceBus queue. I set the service bus' requireSession property be true and found eventSubscription deployment will fail. Here is error message: "code":"InvalidSessionQueueWithoutSessionIdAttributeCategory","message":"Can't add resource /subscriptions/xx/resourceGroups/xx/providers/Microsoft.ServiceBus/namespaces/xx/queues/testqueue as a destination without including SessionId as a Delivery Property because the Service Bus queue has session support enabled.
But if I set requireSession false for serviceBus, the deploy would succeed.
I would like to know if any doc states serviceBus requireSession can't be true if has subscription?
CodePudding user response:
This is documented here https://docs.microsoft.com/en-us/azure/event-grid/handler-service-bus#service-bus-queues
"Session enabled queues are not supported as event handlers for Azure Event Grid events"