This template deploys a Service Bus namespace, a topic, and a subscription.
{"apiversion": "2018-01-01-preview", "name": "[parameters('service_busnamespace_name')]", "type": "microsoft.servicebus/namespaces", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {}, "resources": [{"apiversion": "2017-04-01", "name": "[parameters('servicebustopicname')]", "type": "topics", "dependson": ["[resourceid('microsoft.servicebus/namespaces/", parameters('service_busnamespace_name'))]"], "properties": {"defaultmessagetimetolive": "p10675199dt2h48m5.4775807s", "maxsizeinmegabytes": 1024, "requiresduplicatedetection": false, "duplicatedetectionhistorytimewindow": "pt10m", "enablebatchedoperations": false, "supportordering": false, "autodeleteonidle": "p10675199dt2h48m5.4775807s", "enablepartitioning": false, "enableexpress": false}, "resources": [{"apiversion": "2017-04-01", "name": "[parameters('servicebussubscriptionname')]", "type": "subscriptions", "dependson": ["[parameters('servicebustopicname')]"], "properties": {"lockduration": "pt1m", "requiressession": false, "defaultmessagetimetolive": "p10675199dt2h48m5.4775807s", "deadletteringonmessageexpiration": false, "maxdeliverycount": 10, "enablebatchedoperations": false, "autodeleteonidle": "p10675199dt2h48m5.4775807s"}}]}]} 