@ -0,0 +1,31 @@ | |||||
# Deploying Redis Cache | |||||
The ARM template `redisdeploy.json` and its parameter file (`redisdeploy.parameters.json`) are used to deploy following resources: | |||||
1. One Redis Cache | |||||
## Editing sbusdeploy.parameters.json file | |||||
You can edit the `redisdeploy.parameters.parameters.json` file to set your values, but is not needed. The only parameter than can | |||||
be set is: | |||||
1. `namespaceprefix` is a string that is used to create the Redis namespace. ARM script creates unique values by appending a unique string to this parameter value, so you can leave the default value. | |||||
## Deploy the template | |||||
Once parameter file is edited you can deploy it using [create-resources script](../readme.md). | |||||
i. e. if you are in windows, to deploy sql databases in a new resourcegroup located in westus, go to `deploy\az` folder and type: | |||||
``` | |||||
create-resources.cmd redis\redisdeploy newResourceGroup -c westus | |||||
``` | |||||
@ -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" | |||||
} | |||||
} | |||||
} | |||||
] | |||||
} |
@ -0,0 +1,9 @@ | |||||
{ | |||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |||||
"contentVersion": "1.0.0.0", | |||||
"parameters": { | |||||
"namespaceprefix": { | |||||
"value": "eshopredis" | |||||
} | |||||
} | |||||
} |