Search code examples
azuresessionazureservicebusazure-servicebus-topicsazure-servicebus-subscriptions

Azure Service Bus Session Enabled Subscription Creation through ARM template


I was able to create a service bus namespace, topic and subscription using the following example: https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-resource-manager-namespace-topic-with-rule I wanted to understand how is it possible to enable sessions on the Subscription while creating the resource through ARM template


Solution

  • There is a requiresSession property that can be set to true to enable sessions on a subscription.

    You can refer the reference docs for the same.