Browse Source

Redis deploy ARM template and doc

pull/235/head
Eduard Tomas 7 years ago
parent
commit
64b9ea6f79
4 changed files with 83 additions and 0 deletions
  1. +31
    -0
      deploy/az/redis/readme.md
  2. +42
    -0
      deploy/az/redis/redisdeploy.json
  3. +9
    -0
      deploy/az/redis/redisdeploy.parameters.json
  4. +1
    -0
      deploy/readme.md

+ 31
- 0
deploy/az/redis/readme.md View File

@ -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
```

+ 42
- 0
deploy/az/redis/redisdeploy.json View File

@ -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"
}
}
}
]
}

+ 9
- 0
deploy/az/redis/redisdeploy.parameters.json View File

@ -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"
}
}
}

+ 1
- 0
deploy/readme.md View File

@ -19,6 +19,7 @@ Using `docker-machine` is the recommended way to create a VM with docker install
1. [Deploying SQL Server and databases](az/sql/readme.md)
2. [Deploying Azure Service Bus](az/servicebus/readme.md)
3. [Deploying Redis Cache](az/redis/readme.md)


Loading…
Cancel
Save