You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

  1. {
  2. "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
  3. "contentVersion": "1.0.0.0",
  4. "parameters": {
  5. "name": {
  6. "type": "String"
  7. }
  8. },
  9. "variables": {
  10. "name": "[concat(parameters('name'), uniqueString(resourceGroup().id))]",
  11. "location":"[resourceGroup().location]"
  12. },
  13. "resources": [
  14. {
  15. "type": "Microsoft.DocumentDb/databaseAccounts",
  16. "kind": "MongoDB",
  17. "name": "[variables('name')]",
  18. "apiVersion": "2015-04-08",
  19. "location": "[variables('location')]",
  20. "properties": {
  21. "databaseAccountOfferType": "Standard",
  22. "locations": [
  23. {
  24. "id": "[concat(variables('name'), '-', variables('location'))]",
  25. "failoverPriority": 0,
  26. "locationName": "[variables('location')]"
  27. }
  28. ]
  29. }
  30. }
  31. ]
  32. }