forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuredeploy.json
115 lines (115 loc) · 3.22 KB
/
azuredeploy.json
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
112
113
114
115
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"cdnApiVersion":"2015-06-01"
},
"parameters": {
"profileName": {
"type": "string",
"metadata": {
"description": "Name of the CDN Profile."
}
},
"sku": {
"type": "string",
"defaultValue": "Standard",
"allowedValues": ["Standard","Premium"],
"metadata": {
"description": "Pricing tier of the CDN Profile."
}
},
"endpointName": {
"type": "string",
"metadata": {
"description": "Name of the CDN Endpoint."
}
},
"originHostHeader":{
"type": "string",
"metadata": {
"description": "Host header that CDN edge node going to send to origin."
}
},
"isHttpAllowed":{
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Whether the HTTP traffic is allowed."
}
},
"isHttpsAllowed":{
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Whether the HTTPS traffic is allowed."
}
},
"queryStringCachingBehavior": {
"type": "string",
"defaultValue": "IgnoreQueryString",
"allowedValues": ["IgnoreQueryString","BypassCaching","UseQueryString"],
"metadata": {
"description": "Query string caching behavior."
}
},
"contentTypesToCompress": {
"type": "array",
"defaultValue": [ "text/plain","text/html","text/css","application/x-javascript","text/javascript" ],
"metadata": {
"description": "Content type that is compressed."
}
},
"isCompressionEnabled":{
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Whether the compression is enabled"
}
},
"originUrl": {
"type": "string",
"metadata": {
"description": "Url of the origin"
}
}
},
"resources": [
{
"name": "[parameters('profileName')]",
"type": "Microsoft.Cdn/profiles",
"location": "[resourceGroup().location]",
"apiVersion": "[variables('cdnApiVersion')]",
"properties": {
"sku": {
"name": "[parameters('sku')]"
}
}
},
{
"apiVersion": "[variables('cdnApiVersion')]",
"dependsOn": [
"[concat('Microsoft.Cdn/profiles/', parameters('profileName'))]"
],
"location": "[resourceGroup().location]",
"name": "[concat(parameters('profileName'),'/',parameters('endpointName'))]",
"type": "Microsoft.Cdn/profiles/endpoints",
"properties": {
"originHostHeader": "[parameters('originUrl')]",
"isHttpAllowed": "[parameters('isHttpAllowed')]",
"isHttpsAllowed": "[parameters('isHttpsAllowed')]",
"queryStringCachingBehavior": "[parameters('queryStringCachingBehavior')]",
"contentTypesToCompress": "[parameters('contentTypesToCompress')]",
"isCompressionEnabled": "[parameters('isCompressionEnabled')]",
"origins": [
{
"name": "origin1",
"properties": {
"hostName": "[parameters('originUrl')]"
}
}
]
}
}
]
}