1
+ {
2
+ "$schema" : " http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
3
+ "contentVersion" : " 1.0.0.0" ,
4
+ "parameters" : {
5
+ "webAppName" : {
6
+ "type" : " string"
7
+ },
8
+ "webFarmName" : {
9
+ "type" : " string"
10
+ },
11
+ "appInsightsInstrumentationKey" : {
12
+ "type" : " string"
13
+ },
14
+ "clientSecret" : {
15
+ "type" : " securestring"
16
+ },
17
+ "clientId" : {
18
+ "type" : " string"
19
+ },
20
+ "slot" : {
21
+ "type" : " string" ,
22
+ "allowedValues" : [
23
+ " prod" , " test"
24
+ ],
25
+ "defaultValue" : " prod"
26
+ }
27
+ },
28
+ "variables" : {
29
+ "location" : " [resourceGroup().location]" ,
30
+ "webDeployUser" : " rainer"
31
+ },
32
+ "resources" : [
33
+ {
34
+ "name" : " [concat(parameters('webAppName'), if(equals(parameters('slot'), 'test'), '/test', '')]" ,
35
+ "type" : " [concat('Microsoft.Web/sites', if(equals(parameters('slot'), 'test'), '/slots', '')]" ,
36
+ "apiVersion" : " 2016-08-01" ,
37
+ "location" : " [variables('location')]" ,
38
+ "tags" : {
39
+ "Tier" : " Web"
40
+ },
41
+ "properties" : {
42
+ "serverFarmId" : " [resourceId('Microsoft.Web/serverfarms/', parameters('webFarmName'))]" ,
43
+ "siteConfig" : {
44
+ "defaultDocuments" : [
45
+ " default.html"
46
+ ],
47
+ "netFrameworkVersion" : " v4.6" ,
48
+ "publishingUsername" : " [variables('webDeployUser')]" ,
49
+ "appSettings" : [
50
+ {
51
+ "name" : " ApplicationInsights:InstrumentationKey" ,
52
+ "value" : " [if(empty(parameters('appInsightsInstrumentationKey')), parameters('appInsightsInstrumentationKey'), json('null'))]"
53
+ },
54
+ {
55
+ "name" : " KeyVault:ClientID" ,
56
+ "value" : " [parameters('clientId')]"
57
+ },
58
+ {
59
+ "name" : " KeyVault:ClientSecret" ,
60
+ "value" : " [parameters('clientSecret')]"
61
+ }
62
+ ],
63
+ "use32BitWorkerProcess" : false ,
64
+ "webSocketsEnabled" : true ,
65
+ "alwaysOn" : true ,
66
+ "cors" : {
67
+ "allowedOrigins" : [
68
+ " *"
69
+ ]
70
+ }
71
+ }
72
+ }
73
+ }
74
+ ],
75
+ "outputs" : {}
76
+ }
0 commit comments