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.

41 lines
1.4 KiB

  1. {
  2. "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  3. "contentVersion": "1.0.0.0",
  4. "parameters": {
  5. "namespaceprefix": {
  6. "type": "string",
  7. "metadata": {
  8. "description": "Name of the Redis namespace"
  9. }
  10. }
  11. },
  12. "variables": {
  13. "location": "[resourceGroup().location]",
  14. "namespaceprefix": "[concat(parameters('namespaceprefix'), uniqueString(resourceGroup().id))]",
  15. "sbVersion": "2016-04-01"
  16. },
  17. "resources": [
  18. {
  19. "type": "Microsoft.Cache/Redis",
  20. "name": "[variables('namespaceprefix')]",
  21. "apiVersion": "[variables('sbVersion')]",
  22. "location": "[variables('location')]",
  23. "scale": null,
  24. "properties": {
  25. "redisVersion": "3.2.7",
  26. "sku": {
  27. "name": "Standard",
  28. "family": "C",
  29. "capacity": 1
  30. },
  31. "enableNonSslPort": true,
  32. "redisConfiguration": {
  33. "maxclients": "1000",
  34. "maxmemory-reserved": "50",
  35. "maxfragmentationmemory-reserved": "50",
  36. "maxmemory-policy": "volatile-lru",
  37. "maxmemory-delta": "50"
  38. }
  39. }
  40. }
  41. ]
  42. }