This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
/
arm_template.go
111 lines (110 loc) · 2.37 KB
/
arm_template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package rediscache
// nolint: lll
var armTemplateBytes = []byte(`
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"serverName": {
"type": "string",
"metadata": {
"description": "The name of the Azure Redis Cache to create."
}
},
"redisCacheSKU": {
"type": "string",
"allowedValues": [
"Basic",
"Standard",
"Premium"
],
"metadata": {
"description": "The pricing tier of the new Azure Redis Cache."
}
},
"redisCacheFamily": {
"type": "string",
"metadata": {
"description": "The family for the sku."
},
"allowedValues": [
"C",
"P"
]
},
"redisCacheCapacity": {
"type": "int",
"allowedValues": [
0,
1,
2,
3,
4,
5,
6
],
"metadata": {
"description": "The size of the new Azure Redis Cache instance. "
}
},
"diagnosticsStatus": {
"type": "string",
"defaultValue": "OFF",
"allowedValues": [
"ON",
"OFF"
],
"metadata": {
"description": "A value that indicates whether diagnostices is enabled. Use ON or OFF."
}
},
"tags": {
"type": "object"
}
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "[parameters('serverName')]",
"type": "Microsoft.Cache/Redis",
"location": "[parameters('location')]",
"properties": {
"enableNonSslPort": true,
"sku": {
"capacity": "[parameters('redisCacheCapacity')]",
"family": "[parameters('redisCacheFamily')]",
"name": "[parameters('redisCacheSKU')]"
}
},
"tags": "[parameters('tags')]",
"resources": [
{
"apiVersion": "2015-07-01",
"type": "Microsoft.Cache/redis/providers/diagnosticsettings",
"name": "[concat(parameters('serverName'), '/Microsoft.Insights/service')]",
"location": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Cache/Redis/', parameters('serverName'))]"
],
"properties": {
"status": "[parameters('diagnosticsStatus')]"
}
}
]
}
],
"outputs": {
"primaryKey": {
"type": "string",
"value": "[listKeys(resourceId('Microsoft.Cache/Redis', parameters('serverName')), '2015-08-01').primaryKey]"
},
"fullyQualifiedDomainName": {
"type": "string",
"value": "[reference(parameters('serverName')).hostName]"
}
}
}
`)