1
+ {
2
+ "$schema" : " http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
3
+ "contentVersion" : " 1.0.0.0" ,
4
+ "parameters" : {
5
+ "subscriptionId" : {
6
+ "type" : " string"
7
+ },
8
+ "name" : {
9
+ "type" : " string"
10
+ },
11
+ "location" : {
12
+ "type" : " string"
13
+ },
14
+ "hostingEnvironment" : {
15
+ "type" : " string"
16
+ },
17
+ "hostingPlanName" : {
18
+ "type" : " string"
19
+ },
20
+ "serverFarmResourceGroup" : {
21
+ "type" : " string"
22
+ },
23
+ "alwaysOn" : {
24
+ "type" : " bool"
25
+ },
26
+ "sku" : {
27
+ "type" : " string"
28
+ },
29
+ "skuCode" : {
30
+ "type" : " string"
31
+ },
32
+ "workerSize" : {
33
+ "type" : " string"
34
+ },
35
+ "workerSizeId" : {
36
+ "type" : " string"
37
+ },
38
+ "numberOfWorkers" : {
39
+ "type" : " string"
40
+ },
41
+ "currentStack" : {
42
+ "type" : " string"
43
+ }
44
+ },
45
+ "resources" : [
46
+ {
47
+ "apiVersion" : " 2018-02-01" ,
48
+ "name" : " [parameters('name')]" ,
49
+ "type" : " Microsoft.Web/sites" ,
50
+ "location" : " [parameters('location')]" ,
51
+ "tags" : null ,
52
+ "dependsOn" : [
53
+ " microsoft.insights/components/NewApp-01" ,
54
+ " [concat('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]"
55
+ ],
56
+ "properties" : {
57
+ "name" : " [parameters('name')]" ,
58
+ "siteConfig" : {
59
+ "appSettings" : [
60
+ {
61
+ "name" : " APPINSIGHTS_INSTRUMENTATIONKEY" ,
62
+ "value" : " [reference('microsoft.insights/components/NewApp-01', '2015-05-01').InstrumentationKey]"
63
+ },
64
+ {
65
+ "name" : " ApplicationInsightsAgent_EXTENSION_VERSION" ,
66
+ "value" : " ~2"
67
+ },
68
+ {
69
+ "name" : " XDT_MicrosoftApplicationInsights_Mode" ,
70
+ "value" : " default"
71
+ },
72
+ {
73
+ "name" : " DiagnosticServices_EXTENSION_VERSION" ,
74
+ "value" : " disabled"
75
+ },
76
+ {
77
+ "name" : " APPINSIGHTS_PROFILERFEATURE_VERSION" ,
78
+ "value" : " disabled"
79
+ },
80
+ {
81
+ "name" : " APPINSIGHTS_SNAPSHOTFEATURE_VERSION" ,
82
+ "value" : " disabled"
83
+ },
84
+ {
85
+ "name" : " InstrumentationEngine_EXTENSION_VERSION" ,
86
+ "value" : " disabled"
87
+ },
88
+ {
89
+ "name" : " SnapshotDebugger_EXTENSION_VERSION" ,
90
+ "value" : " disabled"
91
+ },
92
+ {
93
+ "name" : " XDT_MicrosoftApplicationInsights_BaseExtensions" ,
94
+ "value" : " disabled"
95
+ }
96
+ ],
97
+ "metadata" : [
98
+ {
99
+ "name" : " CURRENT_STACK" ,
100
+ "value" : " [parameters('currentStack')]"
101
+ }
102
+ ],
103
+ "alwaysOn" : " [parameters('alwaysOn')]"
104
+ },
105
+ "serverFarmId" : " [concat('/subscriptions/', parameters('subscriptionId'),'/resourcegroups/', parameters('serverFarmResourceGroup'), '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]" ,
106
+ "hostingEnvironment" : " [parameters('hostingEnvironment')]" ,
107
+ "clientAffinityEnabled" : true
108
+ }
109
+ },
110
+ {
111
+ "apiVersion" : " 2018-02-01" ,
112
+ "name" : " [parameters('hostingPlanName')]" ,
113
+ "type" : " Microsoft.Web/serverfarms" ,
114
+ "location" : " [parameters('location')]" ,
115
+ "kind" : " " ,
116
+ "tags" : null ,
117
+ "properties" : {
118
+ "name" : " [parameters('hostingPlanName')]" ,
119
+ "workerSize" : " [parameters('workerSize')]" ,
120
+ "workerSizeId" : " [parameters('workerSizeId')]" ,
121
+ "numberOfWorkers" : " [parameters('numberOfWorkers')]" ,
122
+ "hostingEnvironment" : " [parameters('hostingEnvironment')]"
123
+ },
124
+ "sku" : {
125
+ "Tier" : " [parameters('sku')]" ,
126
+ "Name" : " [parameters('skuCode')]"
127
+ }
128
+ },
129
+ {
130
+ "apiVersion" : " 2015-05-01" ,
131
+ "name" : " NewApp-01" ,
132
+ "type" : " microsoft.insights/components" ,
133
+ "location" : " australiaeast" ,
134
+ "properties" : {
135
+ "ApplicationId" : " [parameters('name')]" ,
136
+ "Request_Source" : " IbizaWebAppExtensionCreate"
137
+ }
138
+ }
139
+ ]
140
+ }
0 commit comments