|
|
@ -0,0 +1,42 @@ |
|
|
|
{ |
|
|
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", |
|
|
|
"contentVersion": "1.0.0.0", |
|
|
|
"parameters": { |
|
|
|
"namespaceprefix": { |
|
|
|
"type": "string", |
|
|
|
"metadata": { |
|
|
|
"description": "Name of the Redis namespace" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"variables": { |
|
|
|
"location": "[resourceGroup().location]", |
|
|
|
"namespaceprefix": "[concat(parameters('namespaceprefix'), uniqueString(resourceGroup().id))]", |
|
|
|
"sbVersion": "2016-04-01" |
|
|
|
}, |
|
|
|
"resources": [ |
|
|
|
{ |
|
|
|
"type": "Microsoft.Cache/Redis", |
|
|
|
"name": "[variables('namespaceprefix')]", |
|
|
|
"apiVersion": "[variables('sbVersion')]", |
|
|
|
"location": "[variables('location')]", |
|
|
|
"scale": null, |
|
|
|
"properties": { |
|
|
|
"redisVersion": "3.2.7", |
|
|
|
"sku": { |
|
|
|
"name": "Standard", |
|
|
|
"family": "C", |
|
|
|
"capacity": 1 |
|
|
|
}, |
|
|
|
"enableNonSslPort": true, |
|
|
|
"redisConfiguration": { |
|
|
|
"maxclients": "1000", |
|
|
|
"maxmemory-reserved": "50", |
|
|
|
"maxfragmentationmemory-reserved": "50", |
|
|
|
"maxmemory-policy": "volatile-lru", |
|
|
|
"maxmemory-delta": "50" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |