Microsoft.ServiceBus namespaces/topics/subscriptions 2015-08-01

The namespaces/topics/subscriptions resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.ServiceBus/namespaces/topics/subscriptions resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2015-08-01' = {
  name: 'string'
  location: 'string'
  properties: {
    autoDeleteOnIdle: 'string'
    deadLetteringOnFilterEvaluationExceptions: bool
    deadLetteringOnMessageExpiration: bool
    defaultMessageTimeToLive: 'string'
    enableBatchedOperations: bool
    entityAvailabilityStatus: 'string'
    lockDuration: 'string'
    maxDeliveryCount: int
    requiresSession: bool
    status: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
location Resource location. string (required)
properties Description of Subscription Resource. SubscriptionProperties


Name Description Value
autoDeleteOnIdle TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. string
deadLetteringOnFilterEvaluationExceptions Value that indicates whether a subscription has dead letter support on filter evaluation exceptions. bool
deadLetteringOnMessageExpiration Value that indicates whether a subscription has dead letter support when a message expires. bool
defaultMessageTimeToLive Default message time to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself. string
enableBatchedOperations Value that indicates whether server-side batched operations are enabled. bool
entityAvailabilityStatus Entity availability status. 'Available'
lockDuration The lock duration time span for the subscription. string
maxDeliveryCount Number of maximum deliveries. int
requiresSession Value indicating if a subscription supports the concept of sessions. bool
status Entity status. 'Active'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Integration Patterns - Message Router - Service Bus

Deploy to Azure
Solution which shows how we can set up the Message Router pattern using a Service Bus Topic
Correlating messages over Logic Apps using Service Bus

Deploy to Azure
which shows how we can correlate messages over Logic Apps using Azure Service Bus