/
application-ma.json
307 lines (294 loc) · 14.1 KB
/
application-ma.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"webApiVersion": "2018-02-01",
"appInsightsApiVersion": "2015-05-01",
"sqlServerFqdnTidy": "[toLower(trim(parameters('sqlServerFqdn')))]",
"poolsSqlDatabaseNameTidy": "[toLower(trim(parameters('poolsSqlDatabaseName')))]",
"maSqlDatabaseNameTidy": "[toLower(trim(parameters('maSqlDatabaseName')))]",
"refDataSqlDatabaseNameTidy": "[toLower(trim(parameters('refDataSqlDatabaseName')))]",
"shardMapManagerSqlDatabaseNameTidy": "[toLower(trim(parameters('shardMapManagerSqlDatabaseName')))]",
"messagingSqlDatabaseNameTidy": "[toLower(trim(parameters('messagingSqlDatabaseName')))]",
"xcRefDataWebAppNameTidy": "[toLower(trim(parameters('xcRefDataWebAppName')))]",
"xcCollectWebAppNameTidy": "[toLower(trim(parameters('xcCollectWebAppName')))]",
"maOpsWebAppNameTidy": "[toLower(trim(parameters('maOpsWebAppName')))]",
"maRepWebAppNameTidy": "[toLower(trim(parameters('maRepWebAppName')))]",
"appInsightsNameTidy": "[toLower(trim(parameters('applicationInsightsName')))]"
},
"parameters": {
"infrastructure": {
"type": "secureObject",
"defaultValue": {
"sqlServerFqdn": null,
"authCertificateThumbprint": null
}
},
"deploymentId": {
"type": "string",
"defaultValue": "[resourceGroup().name]"
},
"location": {
"type": "string",
"minLength": 1,
"defaultValue": "[resourceGroup().location]"
},
"sitecoreAdminPassword": {
"type": "securestring",
"minLength": 8
},
"licenseXml": {
"type": "securestring",
"minLength": 1
},
"sqlServerFqdn": {
"type": "string",
"minLength": 1,
"defaultValue": "[parameters('infrastructure').sqlServerFqdn]"
},
"sqlServerLogin": {
"type": "string",
"minLength": 1
},
"sqlServerPassword": {
"type": "securestring",
"minLength": 8
},
"poolsSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-pools-db')]"
},
"maSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-ma-db')]"
},
"refDataSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-refdata-db')]"
},
"shardMapManagerSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-smm-db')]"
},
"messagingSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-messaging-db')]"
},
"poolsSqlDatabaseUserName": {
"type": "string",
"minLength": 1,
"defaultValue": "poolsuser"
},
"poolsSqlDatabasePassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[concat(toUpper(uniqueString('pools', parameters('passwordSalt'))), uniqueString('pools', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('pools', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]"
},
"xcRefDataSqlDatabaseUserName": {
"type": "string",
"minLength": 1,
"defaultValue": "xcrefdatauser"
},
"xcRefDataSqlDatabasePassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[concat(toUpper(uniqueString('xcrefdata', parameters('passwordSalt'))), uniqueString('xcrefdata', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('xcrefdata', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]"
},
"xcMaSqlDatabaseUserName": {
"type": "string",
"minLength": 1,
"defaultValue": "xcmauser"
},
"xcMaSqlDatabasePassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[concat(toUpper(uniqueString('xcma', parameters('passwordSalt'))), uniqueString('xcma', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('xcma', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]"
},
"xcShardMapManagerSqlDatabaseUserName": {
"type": "string",
"minLength": 1,
"defaultValue": "xcsmmuser"
},
"xcShardMapManagerSqlDatabasePassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[concat(toUpper(uniqueString('xcsmm', parameters('passwordSalt'))), uniqueString('xcsmm', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('xcsmm', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]"
},
"messagingSqlDatabaseUserName": {
"type": "string",
"minLength": 1,
"defaultValue": "messaginguser"
},
"messagingSqlDatabasePassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[concat(toUpper(uniqueString('messaging', parameters('passwordSalt'))), uniqueString('messaging', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('messaging', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]"
},
"useApplicationInsights": {
"type": "bool",
"defaultValue": true
},
"applicationInsightsName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-ai')]"
},
"xcRefDataWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-xc-refdata')]"
},
"xcCollectWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-xc-collect')]"
},
"maOpsWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-ma-ops')]"
},
"maRepWebAppName": {
"type": "string",
"minLength": 1,
"defaultValue": "[concat(parameters('deploymentId'), '-ma-rep')]"
},
"authCertificateThumbprint": {
"type": "string",
"minLength": 8,
"defaultValue": "[parameters('infrastructure').authCertificateThumbprint]"
},
"maOpsMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1
},
"maRepMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1
},
"allowInvalidClientCertificates": {
"type": "bool",
"defaultValue": false
},
"passwordSalt": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[resourceGroup().id]"
},
"xcServerConfigurationEnvironment": {
"type": "string",
"defaultValue": "Production",
"allowedValues": [ "Development", "Production" ]
},
"environmentType": {
"type": "string",
"defaultValue": "Non-Production"
}
},
"resources": [
{
"name": "[concat(variables('maOpsWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"packageUri": "[parameters('maOpsMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"IIS Web Application Name": "[variables('maOpsWebAppNameTidy')]",
"Database Server Name": "[variables('sqlServerFqdnTidy')]",
"Database Admin User Name": "[parameters('sqlServerLogin')]",
"Database Admin User Password": "[parameters('sqlServerPassword')]",
"Collection Database Server Name": "[variables('sqlServerFqdnTidy')]",
"Processing Pools Database Name": "[variables('poolsSqlDatabaseNameTidy')]",
"Processing Pool Database Application User Name": "[parameters('poolsSqlDatabaseUserName')]",
"Processing Pool Database Application User Password": "[parameters('poolsSqlDatabasePassword')]",
"Collection Shard Map Manager Database Name": "[variables('shardMapManagerSqlDatabaseNameTidy')]",
"Collection Database Application User Name": "[parameters('xcShardMapManagerSqlDatabaseUserName')]",
"Collection Database Application User Password": "[parameters('xcShardMapManagerSqlDatabasePassword')]",
"Marketing Automation Database Name": "[variables('maSqlDatabaseNameTidy')]",
"Reference Data Database Name": "[variables('refDataSqlDatabaseNameTidy')]",
"Messaging Database Name": "[variables('messagingSqlDatabaseNameTidy')]",
"Reference Data Database Application User Name": "[parameters('xcRefDataSqlDatabaseUserName')]",
"Reference Data Database Application User Password": "[parameters('xcRefDataSqlDatabasePassword')]",
"Marketing Automation Database Application User Name": "[parameters('xcMaSqlDatabaseUserName')]",
"Marketing Automation Database Application User Password": "[parameters('xcMaSqlDatabasePassword')]",
"Messaging Database Application User Name": "[parameters('messagingSqlDatabaseUserName')]",
"Messaging Database Application User Password": "[parameters('messagingSqlDatabasePassword')]",
"XConnect Server Configuration Environment": "[parameters('xcServerConfigurationEnvironment')]",
"XConnect Server Certificate Validation Thumbprint": "[parameters('authCertificateThumbprint')]",
"Marketing Automation Engine Xconnect Collection Client Endpoint": "[concat('https://', reference(resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Web/sites', variables('xcCollectWebAppNameTidy')), variables('webApiVersion')).hostNames[0])]",
"Marketing Automation Engine Xconnect Collection Client Certificate Thumbprint": "[parameters('authCertificateThumbprint')]",
"Marketing Automation Engine Xdb Reference Data Endpoint": "[concat('https://', reference(resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Web/sites', variables('xcRefDataWebAppNameTidy')), variables('webApiVersion')).hostNames[0])]",
"Marketing Automation Engine Xdb Reference Data Client Certificate Thumbprint": "[parameters('authCertificateThumbprint')]",
"Allow Invalid Client Certificates": "[parameters('allowInvalidClientCertificates')]",
"XConnect Server Application Insights Key": "[if(parameters('useApplicationInsights'), reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey, '')]",
"XConnect Server Instance Name": "MarketingAutomation",
"License Xml": "[parameters('licenseXml')]"
}
}
},
{
"name": "[concat(variables('maRepWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"packageUri": "[parameters('maRepMsDeployPackageUrl')]",
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"setParameters": {
"IIS Web Application Name": "[variables('maRepWebAppNameTidy')]",
"Database Server Name": "[variables('sqlServerFqdnTidy')]",
"Marketing Automation Database Name": "[variables('maSqlDatabaseNameTidy')]",
"Reference Data Database Name": "[variables('refDataSqlDatabaseNameTidy')]",
"Reference Data Database Application User Name": "[parameters('xcRefDataSqlDatabaseUserName')]",
"Reference Data Database Application User Password": "[parameters('xcRefDataSqlDatabasePassword')]",
"Marketing Automation Database Application User Name": "[parameters('xcMaSqlDatabaseUserName')]",
"Marketing Automation Database Application User Password": "[parameters('xcMaSqlDatabasePassword')]",
"XConnect Server Configuration Environment": "[parameters('xcServerConfigurationEnvironment')]",
"XConnect Server Certificate Validation Thumbprint": "[parameters('authCertificateThumbprint')]",
"Allow Invalid Client Certificates": "[parameters('allowInvalidClientCertificates')]",
"XConnect Server Application Insights Key": "[if(parameters('useApplicationInsights'), reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey, '')]",
"XConnect Server Instance Name": "MarketingAutomationReporting",
"License Xml": "[parameters('licenseXml')]"
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites/extensions', variables('maOpsWebAppNameTidy'),'MSDeploy')]"
]
},
{
"name": "[concat(variables('maOpsWebAppNameTidy'), '/', 'appsettings')]",
"type": "Microsoft.Web/sites/config",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"WEBSITE_LOAD_CERTIFICATES": "[parameters('authCertificateThumbprint')]",
"WEBSITE_DYNAMIC_CACHE": 0,
"SITECORE_ENVIRONMENT_TYPE": "[parameters('environmentType')]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites/extensions', variables('maOpsWebAppNameTidy'),'MSDeploy')]"
]
},
{
"name": "[concat(variables('maRepWebAppNameTidy'), '/', 'appsettings')]",
"type": "Microsoft.Web/sites/config",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"WEBSITE_LOAD_CERTIFICATES": "[parameters('authCertificateThumbprint')]",
"WEBSITE_DYNAMIC_CACHE": 0,
"SITECORE_ENVIRONMENT_TYPE": "[parameters('environmentType')]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites/extensions', variables('maRepWebAppNameTidy'),'MSDeploy')]"
]
}
]
}