This template creates a Service Bus namespace and 2 queues and sets auto forwarding.
{"apiversion": "2017-04-01", "name": "[parameters('servicebusnamespacename')]", "type": "microsoft.servicebus/namespaces", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {}, "resources": [{"apiversion": "2017-04-01", "name": "[parameters('servicebusqueuename1')]", "type": "queues", "dependson": ["[resourceid('microsoft.servicebus/namespaces", parameters('servicebusnamespacename'))]"], "properties": {"lockduration": "pt5m", "maxsizeinmegabytes": "1024", "requiresduplicatedetection": "false", "requiressession": "false", "defaultmessagetimetolive": "p10675199dt2h48m5.4775807s", "deadletteringonmessageexpiration": "false", "duplicatedetectionhistorytimewindow": "pt10m", "maxdeliverycount": "10", "autodeleteonidle": "p10675199dt2h48m5.4775807s", "enablepartitioning": "false", "enableexpress": "false"}}, {"apiversion": "2017-04-01", "name": "[parameters('servicebusqueuename2')]", "type": "queues", "dependson": ["[resourceid('microsoft.servicebus/namespaces", parameters('servicebusnamespacename'))]", "[resourceid('microsoft.servicebus/namespaces/queues/", parameters('servicebusnamespacename'),parameters('servicebusqueuename1'))]"], "properties": {"lockduration": "pt5m", "maxsizeinmegabytes": "1024", "requiresduplicatedetection": "false", "requiressession": "false", "defaultmessagetimetolive": "p10675199dt2h48m5.4775807s", "deadletteringonmessageexpiration": "false", "duplicatedetectionhistorytimewindow": "pt10m", "maxdeliverycount": "10", "autodeleteonidle": "p10675199dt2h48m5.4775807s", "enablepartitioning": "false", "enableexpress": "false", "forwardto": "[parameters('servicebusqueuename1')]", "forwarddeadletteredmessagesto": "[parameters('servicebusqueuename1')]"}}]} 