{ "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "name": { "type": "String" } }, "variables": { "name": "[concat(parameters('name'), uniqueString(resourceGroup().id))]", "location":"[resourceGroup().location]" }, "resources": [ { "type": "Microsoft.DocumentDb/databaseAccounts", "kind": "MongoDB", "name": "[variables('name')]", "apiVersion": "2015-04-08", "location": "[variables('location')]", "properties": { "databaseAccountOfferType": "Standard", "locations": [ { "id": "[concat(variables('name'), '-', variables('location'))]", "failoverPriority": 0, "locationName": "[variables('location')]" } ] } } ] }