Redis deploy ARM template and doc
This commit is contained in:
parent
ad1637e76b
commit
64b9ea6f79
31
deploy/az/redis/readme.md
Normal file
31
deploy/az/redis/readme.md
Normal 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
deploy/az/redis/redisdeploy.json
Normal file
42
deploy/az/redis/redisdeploy.json
Normal 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
deploy/az/redis/redisdeploy.parameters.json
Normal file
9
deploy/az/redis/redisdeploy.parameters.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
@ -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…
x
Reference in New Issue
Block a user