diff --git a/Sitecore 8.2.7/xdb/README.md b/Sitecore 8.2.7/xdb/README.md index 487a8620..b69ffe69 100644 --- a/Sitecore 8.2.7/xdb/README.md +++ b/Sitecore 8.2.7/xdb/README.md @@ -32,6 +32,18 @@ The **deploymentId** and **licenseXml** parameters are filled in by the PowerShe | trackingHistoryMongoDbConnectionString | A MongoDB connection string for the tracking.history database. | trackingContactMongoDbConnectionString | A MongoDB connection string for the tracking.contact database. +## Deploying with Solr Search +> **solrConnectionString** is a link to the Solr search service. The parameter specifies whether Solr +> search will be used for the deployment or not. The default value is empty which means that Azure Search +> will be used. In the case where solrConnectionString is populated with the Solr search connection string, +> the following parameters should be additionally specified in `azuredeploy.parameters.json`: + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| bootloaderMsDeployPackageUrl | Specifies a blob storage url to a bootloader Web Deploy package. +| prcSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **PRC** configuration Web Deploy package. +| repSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **REP** configuration Web Deploy package. + > **Note:** > * The **searchServiceLocation** parameter can be added to the `azuredeploy.parameters.json` > to specify geographical region to deploy Azure Search Service. Default value is the resource diff --git a/Sitecore 8.2.7/xdb/azuredeploy.json b/Sitecore 8.2.7/xdb/azuredeploy.json index 4c53a3fc..bd78f709 100644 --- a/Sitecore 8.2.7/xdb/azuredeploy.json +++ b/Sitecore 8.2.7/xdb/azuredeploy.json @@ -5,20 +5,30 @@ "resourcesApiVersion": "2016-09-01", "defaultDependency": [ { - "name": "application" + "name": "[if(empty(parameters('solrConnectionString')), 'application-as', 'application-solr')]" } ], - "dependencies": "[concat(variables('defaultDependency'), parameters('modules').items)]" + "moduleFullList": "[union(parameters('systemModules').items, parameters('modules').items)]", + "dependencies": "[concat(variables('defaultDependency'), variables('moduleFullList'))]" }, "parameters": { "modules": { + "type": "secureObject", + "defaultValue": { + "items": [ + ] + } + }, + "systemModules": { "type": "secureObject", "defaultValue": { "items": [ { - "name": "empty", - "templateLink": "[concat(uri(parameters('templateLinkBase'), 'nested/emptyAddon.json'), parameters('templateLinkAccessToken'))]", + "name": "bootloader", + "deployModule": "[not(empty(parameters('bootloaderMsDeployPackageUrl')))]", + "templateLink": "[concat(uri(parameters('templateLinkBase'), 'addons/bootloader.json'), parameters('templateLinkAccessToken'))]", "parameters": { + "msDeployPackageUrl": "[parameters('bootloaderMsDeployPackageUrl')]" } } ] @@ -263,6 +273,24 @@ "minLength": 1 }, + "bootloaderMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "securityClientIp": { "type": "string", "defaultValue": "0.0.0.0" @@ -290,7 +318,7 @@ "resources": [ { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-infrastructure')]", + "name": "[concat(parameters('deploymentId'), '-infrastructure')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", @@ -342,6 +370,10 @@ "value": "[parameters('reportingSqlDatabaseName')]" }, + "deployAzureSearch": { + "value": "[empty(parameters('solrConnectionString'))]" + }, + "searchServiceName": { "value": "[parameters('searchServiceName')]" }, @@ -384,14 +416,19 @@ }, { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-application')]", + "name": "[concat(parameters('deploymentId'), '-application-as')]", "type": "Microsoft.Resources/deployments", + "condition": "[empty(parameters('solrConnectionString'))]", "properties": { "mode": "incremental", "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]" + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-as.json'), parameters('templateLinkAccessToken'))]" }, "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + "deploymentId": { "value": "[parameters('deploymentId')]" }, @@ -528,26 +565,192 @@ }, "infrastructure": { - "value": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" + } + } + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" + ] + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-solr')]", + "type": "Microsoft.Resources/deployments", + "condition": "[not(empty(parameters('solrConnectionString')))]", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-solr.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "solrConnectionString": { + "value": "[parameters('solrConnectionString')]" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('prcSolrConfigurationMsDeployPackageUrl')]" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('repSolrConfigurationMsDeployPackageUrl')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "infrastructure": { + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } } }, "dependsOn": [ - "[resourceId('Microsoft.Resources/deployments', concat(deployment().name, '-infrastructure'))]" + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" ] }, { "copy": { "name": "modules", - "count": "[length(parameters('modules').items)]" + "count": "[length(variables('moduleFullList'))]" }, - "name": "[concat(deployment().name, '-' , parameters('modules').items[copyIndex()].name)]", + "name": "[concat(parameters('deploymentId'), '-' , variables('moduleFullList')[copyIndex()].name)]", + "condition": "[if(contains(variables('moduleFullList')[copyIndex()], 'deployModule'), variables('moduleFullList')[copyIndex()].deployModule, bool('true'))]", "apiVersion": "[variables('resourcesApiVersion')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", "templateLink": { - "uri": "[parameters('modules').items[copyIndex()].templateLink]" + "uri": "[variables('moduleFullList')[copyIndex()].templateLink]" }, "parameters": { "standard": { @@ -604,17 +807,19 @@ "trackingHistoryMongoDbConnectionString": "[parameters('trackingHistoryMongoDbConnectionString')]", "trackingContactMongoDbConnectionString": "[parameters('trackingContactMongoDbConnectionString')]", + "solrConnectionString": "[parameters('solrConnectionString')]", + "securityClientIp": "[parameters('securityClientIp')]", "securityClientIpMask": "[parameters('securityClientIpMask')]", - "infrastructure": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "infrastructure": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } }, - "extension": { "value": "[parameters('modules').items[copyIndex()].parameters]" } + "extension": { "value": "[variables('moduleFullList')[copyIndex()].parameters]" } } }, "dependsOn": [ - "[concat(deployment().name, '-' , variables('dependencies')[copyIndex()].name)]" + "[concat(parameters('deploymentId'), '-' , variables('dependencies')[copyIndex()].name)]" ] } ] diff --git a/Sitecore 8.2.7/xdb/nested/application-as.json b/Sitecore 8.2.7/xdb/nested/application-as.json new file mode 100644 index 00000000..4be7f1a6 --- /dev/null +++ b/Sitecore 8.2.7/xdb/nested/application-as.json @@ -0,0 +1,375 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "resourcesApiVersion": "2016-09-01", + "searchApiVersion": "2015-08-19", + "searchPreviewApiVersion": "2015-02-28-preview", + "searchServiceNameTidy": "[trim(toLower(parameters('searchServiceName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "searchServiceName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-as')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "securityClientIp": { + "type": "string", + "defaultValue": "0.0.0.0" + }, + "securityClientIpMask": { + "type": "string", + "defaultValue": "0.0.0.0" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "cloudSearchConnectionString": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchPreviewApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/nested/application-base.json b/Sitecore 8.2.7/xdb/nested/application-base.json new file mode 100644 index 00000000..f0665216 --- /dev/null +++ b/Sitecore 8.2.7/xdb/nested/application-base.json @@ -0,0 +1,330 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "appInsightsApiVersion": "2015-05-01", + "prcWebAppNameTidy": "[toLower(trim(parameters('prcWebAppName')))]", + "repWebAppNameTidy": "[toLower(trim(parameters('repWebAppName')))]", + "coreDbNameTidy": "[toLower(trim(parameters('coreSqlDatabaseName')))]", + "webDbNameTidy": "[toLower(trim(parameters('webSqlDatabaseName')))]", + "masterDbNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]", + "repDbNameTidy": "[toLower(trim(parameters('reportingSqlDatabaseName')))]", + "appInsightsNameTidy": "[toLower(trim(parameters('applicationInsightsName')))]", + "sqlServerFqdnTidy": "[trim(toLower(parameters('sqlServerFqdn')))]", + "webSqlServerFqdnTidy": "[trim(toLower(parameters('webSqlServerFqdn')))]", + "analyticsMongoDbConnStrTidy": "[trim(parameters('analyticsMongoDbConnectionString'))]", + "trackingLiveMongoDbConnStrTidy": "[trim(parameters('trackingLiveMongoDbConnectionString'))]", + "trackingHistoryMongoDbConnStrTidy": "[trim(parameters('trackingHistoryMongoDbConnectionString'))]", + "trackingContactMongoDbConnStrTidy": "[trim(parameters('trackingContactMongoDbConnectionString'))]" + }, + "parameters": { + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').sqlServerFqdn]" + }, + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').webSqlServerFqdn]" + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "cloudSearchConnectionString": { + "type": "securestring", + "defaultValue": "serviceUrl=;apiVersion=;apiKey=" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "packageUri": "[parameters('prcMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('prcWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('prcCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('prcCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('prcCoreSqlDatabaseUserName'), ';Password=', parameters('prcCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('prcMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('prcMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('prcMasterSqlDatabaseUserName'), ';Password=', parameters('prcMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('prcWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('prcWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('prcWebSqlDatabaseUserName'), ';Password=', parameters('prcWebSqlDatabasePassword'), ';')]", + "Reporting DB User Name": "[parameters('prcReportingSqlDatabaseUserName')]", + "Reporting DB Password": "[parameters('prcReportingSqlDatabasePassword')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('prcReportingSqlDatabaseUserName'), ';Password=', parameters('prcReportingSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking Contact Connection String": "[variables('trackingContactMongoDbConnStrTidy')]", + "Tracking History Connection String": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "Processing", + "IP Security Client IP": "[parameters('securityClientIp')]", + "IP Security Client IP Mask": "[parameters('securityClientIpMask')]", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('prcWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('prcWebAppNameTidy'), '/Extensions/MSDeploy')]" ], + "properties": { + "packageUri": "[parameters('repMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('repWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('repCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('repCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('repCoreSqlDatabaseUserName'), ';Password=', parameters('repCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('repMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('repMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('repMasterSqlDatabaseUserName'), ';Password=', parameters('repMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('repWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('repWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('repWebSqlDatabaseUserName'), ';Password=', parameters('repWebSqlDatabasePassword'), ';')]", + "Reporting DB User Name": "[parameters('repReportingSqlDatabaseUserName')]", + "Reporting DB Password": "[parameters('repReportingSqlDatabasePassword')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('repReportingSqlDatabaseUserName'), ';Password=', parameters('repReportingSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking History Connection String": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "Reporting Service Api Key": "[parameters('repAuthenticationApiKey')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "Reporting", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('repWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/nested/application-solr.json b/Sitecore 8.2.7/xdb/nested/application-solr.json new file mode 100644 index 00000000..b3e62a91 --- /dev/null +++ b/Sitecore 8.2.7/xdb/nested/application-solr.json @@ -0,0 +1,419 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "resourcesApiVersion": "2016-09-01", + "prcWebAppNameTidy": "[toLower(trim(parameters('prcWebAppName')))]", + "repWebAppNameTidy": "[toLower(trim(parameters('repWebAppName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "securityClientIp": { + "type": "string", + "defaultValue": "0.0.0.0" + }, + "securityClientIpMask": { + "type": "string", + "defaultValue": "0.0.0.0" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + }, + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('prcSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('prcWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('repSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('repWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xdb/nested/infrastructure.json b/Sitecore 8.2.7/xdb/nested/infrastructure.json index 0ed6c742..1bcff87d 100644 --- a/Sitecore 8.2.7/xdb/nested/infrastructure.json +++ b/Sitecore 8.2.7/xdb/nested/infrastructure.json @@ -97,6 +97,11 @@ "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" }, + "deployAzureSearch": { + "type": "bool", + "defaultValue": true + }, + "searchServiceName": { "type": "string", "defaultValue": "[concat(parameters('deploymentId'), '-as')]" @@ -550,6 +555,7 @@ }, { "type": "Microsoft.Search/searchServices", + "condition": "[parameters('deployAzureSearch')]", "apiVersion": "[variables('searchApiVersion')]", "name": "[variables('searchServiceNameTidy')]", "location": "[parameters('searchServiceLocation')]", diff --git a/Sitecore 8.2.7/xm/README.md b/Sitecore 8.2.7/xm/README.md index 605afb6c..f1318645 100644 --- a/Sitecore 8.2.7/xm/README.md +++ b/Sitecore 8.2.7/xm/README.md @@ -28,6 +28,18 @@ The **deploymentId** and **licenseXml** parameters are filled in by the PowerShe | cmMsDeployPackageUrl | The blob storage url to a Sitecore XM Content Management Web Deploy package. | cdMsDeployPackageUrl | The blob storage url to a Sitecore XM Content Delivery Web Deploy package. +## Deploying with Solr Search +> **solrConnectionString** is a link to the Solr search service. The parameter specifies whether Solr +> search will be used for the deployment or not. The default value is empty which means that Azure Search +> will be used. In the case where solrConnectionString is populated with the Solr search connection string, +> the following parameters should be additionally specified in `azuredeploy.parameters.json`: + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| bootloaderMsDeployPackageUrl | Specifies a blob storage url to a bootloader Web Deploy package. +| cmSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **CM** configuration Web Deploy package. +| cdSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **CD** configuration Web Deploy package. + > **Note:** > * The **searchServiceLocation** parameter can be added to the `azuredeploy.parameters.json` > to specify geographical region to deploy Azure Search Service. Default value is the resource diff --git a/Sitecore 8.2.7/xm/azuredeploy.json b/Sitecore 8.2.7/xm/azuredeploy.json index d393797a..fe911883 100644 --- a/Sitecore 8.2.7/xm/azuredeploy.json +++ b/Sitecore 8.2.7/xm/azuredeploy.json @@ -5,20 +5,30 @@ "resourcesApiVersion": "2016-09-01", "defaultDependency": [ { - "name": "application" + "name": "[if(empty(parameters('solrConnectionString')), 'application-as', 'application-solr')]" } ], - "dependencies": "[concat(variables('defaultDependency'), parameters('modules').items)]" + "moduleFullList": "[union(parameters('systemModules').items, parameters('modules').items)]", + "dependencies": "[concat(variables('defaultDependency'), variables('moduleFullList'))]" }, "parameters": { "modules": { + "type": "secureObject", + "defaultValue": { + "items": [ + ] + } + }, + "systemModules": { "type": "secureObject", "defaultValue": { "items": [ { - "name": "empty", - "templateLink": "[concat(uri(parameters('templateLinkBase'), 'nested/emptyAddon.json'), parameters('templateLinkAccessToken'))]", + "name": "bootloader", + "deployModule": "[not(empty(parameters('bootloaderMsDeployPackageUrl')))]", + "templateLink": "[concat(uri(parameters('templateLinkBase'), 'addons/bootloader.json'), parameters('templateLinkAccessToken'))]", "parameters": { + "msDeployPackageUrl": "[parameters('bootloaderMsDeployPackageUrl')]" } } ] @@ -213,6 +223,24 @@ "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" }, + "bootloaderMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "securityClientIp": { "type": "string", "defaultValue": "0.0.0.0" @@ -240,7 +268,7 @@ "resources": [ { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-infrastructure')]", + "name": "[concat(parameters('deploymentId'), '-infrastructure')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", @@ -306,7 +334,11 @@ "redisCacheName": { "value": "[parameters('redisCacheName')]" }, - + + "deployAzureSearch": { + "value": "[empty(parameters('solrConnectionString'))]" + }, + "searchServiceName": { "value": "[parameters('searchServiceName')]" }, @@ -335,14 +367,19 @@ }, { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-application')]", + "name": "[concat(parameters('deploymentId'), '-application-as')]", "type": "Microsoft.Resources/deployments", + "condition": "[empty(parameters('solrConnectionString'))]", "properties": { "mode": "incremental", "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]" + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-as.json'), parameters('templateLinkAccessToken'))]" }, "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + "deploymentId": { "value": "[parameters('deploymentId')]" }, @@ -449,26 +486,163 @@ }, "infrastructure": { - "value": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" + } + } + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" + ] + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-solr')]", + "type": "Microsoft.Resources/deployments", + "condition": "[not(empty(parameters('solrConnectionString')))]", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-solr.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + + "solrConnectionString": { + "value": "[parameters('solrConnectionString')]" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('cmSolrConfigurationMsDeployPackageUrl')]" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('cdSolrConfigurationMsDeployPackageUrl')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } } }, "dependsOn": [ - "[resourceId('Microsoft.Resources/deployments', concat(deployment().name, '-infrastructure'))]" + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" ] }, { "copy": { "name": "modules", - "count": "[length(parameters('modules').items)]" + "count": "[length(variables('moduleFullList'))]" }, - "name": "[concat(deployment().name, '-' , parameters('modules').items[copyIndex()].name)]", + "name": "[concat(parameters('deploymentId'), '-' , variables('moduleFullList')[copyIndex()].name)]", + "condition": "[if(contains(variables('moduleFullList')[copyIndex()], 'deployModule'), variables('moduleFullList')[copyIndex()].deployModule, bool('true'))]", "apiVersion": "[variables('resourcesApiVersion')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", "templateLink": { - "uri": "[parameters('modules').items[copyIndex()].templateLink]" + "uri": "[variables('moduleFullList')[copyIndex()].templateLink]" }, "parameters": { "standard": { @@ -513,17 +687,18 @@ "cdWebSqlDatabaseUserName": "[parameters('cdWebSqlDatabaseUserName')]", "cdWebSqlDatabasePassword": "[parameters('cdWebSqlDatabasePassword')]", + "solrConnectionString": "[parameters('solrConnectionString')]", "securityClientIp": "[parameters('securityClientIp')]", "securityClientIpMask": "[parameters('securityClientIpMask')]", - "infrastructure": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "infrastructure": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } }, - "extension": { "value": "[parameters('modules').items[copyIndex()].parameters]" } + "extension": { "value": "[variables('moduleFullList')[copyIndex()].parameters]" } } }, "dependsOn": [ - "[concat(deployment().name, '-' , variables('dependencies')[copyIndex()].name)]" + "[concat(parameters('deploymentId'), '-' , variables('dependencies')[copyIndex()].name)]" ] } ] diff --git a/Sitecore 8.2.7/xm/nested/application-as.json b/Sitecore 8.2.7/xm/nested/application-as.json new file mode 100644 index 00000000..bb0a276b --- /dev/null +++ b/Sitecore 8.2.7/xm/nested/application-as.json @@ -0,0 +1,297 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "resourcesApiVersion": "2016-09-01", + "searchApiVersion": "2015-08-19", + "searchPreviewApiVersion": "2015-02-28-preview", + "searchServiceNameTidy": "[trim(toLower(parameters('searchServiceName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + + "searchServiceName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-as')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "cloudSearchConnectionString": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchPreviewApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/nested/application-base.json b/Sitecore 8.2.7/xm/nested/application-base.json new file mode 100644 index 00000000..c23e3759 --- /dev/null +++ b/Sitecore 8.2.7/xm/nested/application-base.json @@ -0,0 +1,271 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "redisApiVersion": "2016-04-01", + "appInsightsApiVersion": "2015-05-01", + "cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]", + "cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]", + "coreDbNameTidy": "[toLower(trim(parameters('coreSqlDatabaseName')))]", + "webDbNameTidy": "[toLower(trim(parameters('webSqlDatabaseName')))]", + "masterDbNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]", + "sqlServerFqdnTidy": "[trim(toLower(parameters('sqlServerFqdn')))]", + "webSqlServerFqdnTidy": "[trim(toLower(parameters('webSqlServerFqdn')))]", + "redisCacheNameTidy": "[toLower(trim(parameters('redisCacheName')))]", + "appInsightsNameTidy": "[toLower(trim(parameters('applicationInsightsName')))]" + }, + "parameters": { + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cdWebAppFqdn": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('infrastructure').cdWebAppFqdn]" + }, + + "sqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').sqlServerFqdn]" + }, + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').webSqlServerFqdn]" + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cloudSearchConnectionString": { + "type": "securestring", + "defaultValue": "serviceUrl=;apiVersion=;apiKey=" + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "packageUri": "[parameters('cmMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('cmWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('cmCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('cmCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cmCoreSqlDatabaseUserName'), ';Password=', parameters('cmCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('cmMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('cmMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('cmMasterSqlDatabaseUserName'), ';Password=', parameters('cmMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('cmWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('cmWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cmWebSqlDatabaseUserName'), ';Password=', parameters('cmWebSqlDatabasePassword'), ';')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "CM", + "Social Link Domain": "[parameters('cdWebAppFqdn')]", + "IP Security Client IP": "[parameters('securityClientIp')]", + "IP Security Client IP Mask": "[parameters('securityClientIpMask')]", + "Telerik Encryption Key": "[parameters('telerikEncryptionKey')]", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" ], + "properties": { + "packageUri": "[parameters('cdMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('cdWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('cdCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('cdCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cdCoreSqlDatabaseUserName'), ';Password=', parameters('cdCoreSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('cdWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('cdWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cdWebSqlDatabaseUserName'), ';Password=', parameters('cdWebSqlDatabasePassword'), ';')]", + "Redis Connection String": "[concat(reference(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).hostName, ':', reference(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).sslPort, ',password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).primaryKey, ',ssl=True,abortConnect=False')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "CD", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('cdWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/nested/application-solr.json b/Sitecore 8.2.7/xm/nested/application-solr.json new file mode 100644 index 00000000..89f7d6e5 --- /dev/null +++ b/Sitecore 8.2.7/xm/nested/application-solr.json @@ -0,0 +1,340 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "resourcesApiVersion": "2016-09-01", + "cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]", + "cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + }, + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('cmSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('cmWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('cdSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('cdWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xm/nested/infrastructure.json b/Sitecore 8.2.7/xm/nested/infrastructure.json index 9b7ccb1b..1c2c1ef8 100644 --- a/Sitecore 8.2.7/xm/nested/infrastructure.json +++ b/Sitecore 8.2.7/xm/nested/infrastructure.json @@ -94,6 +94,11 @@ "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" }, + "deployAzureSearch": { + "type": "bool", + "defaultValue": true + }, + "searchServiceName": { "type": "string", "defaultValue": "[concat(parameters('deploymentId'), '-as')]" @@ -530,6 +535,7 @@ }, { "type": "Microsoft.Search/searchServices", + "condition": "[parameters('deployAzureSearch')]", "apiVersion": "[variables('searchApiVersion')]", "name": "[variables('searchServiceNameTidy')]", "location": "[parameters('searchServiceLocation')]", diff --git a/Sitecore 8.2.7/xp/README.md b/Sitecore 8.2.7/xp/README.md index 167cff1a..ff7c5bb2 100644 --- a/Sitecore 8.2.7/xp/README.md +++ b/Sitecore 8.2.7/xp/README.md @@ -35,6 +35,20 @@ The **deploymentId** and **licenseXml** parameters are filled in by the PowerShe | trackingHistoryMongoDbConnectionString | A MongoDB connection string for the tracking.history database. | trackingContactMongoDbConnectionString | A MongoDB connection string for the tracking.contact database. +## Deploying with Solr Search +> **solrConnectionString** is a link to the Solr search service. The parameter specifies whether Solr +> search will be used for the deployment or not. The default value is empty which means that Azure Search +> will be used. In the case where solrConnectionString is populated with the Solr search connection string, +> the following parameters should be additionally specified in `azuredeploy.parameters.json`: + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| bootloaderMsDeployPackageUrl | Specifies a blob storage url to a bootloader Web Deploy package. +| cmSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **CM** configuration Web Deploy package. +| cdSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **CD** configuration Web Deploy package. +| prcSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **PRC** configuration Web Deploy package. +| repSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **REP** configuration Web Deploy package. + > **Note:** > * The **searchServiceLocation** parameter can be added to the `azuredeploy.parameters.json` > to specify geographical region to deploy Azure Search Service. Default value is the resource diff --git a/Sitecore 8.2.7/xp/azuredeploy.json b/Sitecore 8.2.7/xp/azuredeploy.json index 3ecbe46f..5624bd53 100644 --- a/Sitecore 8.2.7/xp/azuredeploy.json +++ b/Sitecore 8.2.7/xp/azuredeploy.json @@ -5,20 +5,30 @@ "resourcesApiVersion": "2016-09-01", "defaultDependency": [ { - "name": "application" + "name": "[if(empty(parameters('solrConnectionString')), 'application-as', 'application-solr')]" } ], - "dependencies": "[concat(variables('defaultDependency'), parameters('modules').items)]" + "moduleFullList": "[union(parameters('systemModules').items, parameters('modules').items)]", + "dependencies": "[concat(variables('defaultDependency'), variables('moduleFullList'))]" }, "parameters": { "modules": { + "type": "secureObject", + "defaultValue": { + "items": [ + ] + } + }, + "systemModules": { "type": "secureObject", "defaultValue": { "items": [ { - "name": "empty", - "templateLink": "[concat(uri(parameters('templateLinkBase'), 'nested/emptyAddon.json'), parameters('templateLinkAccessToken'))]", + "name": "bootloader", + "deployModule": "[not(empty(parameters('bootloaderMsDeployPackageUrl')))]", + "templateLink": "[concat(uri(parameters('templateLinkBase'), 'addons/bootloader.json'), parameters('templateLinkAccessToken'))]", "parameters": { + "msDeployPackageUrl": "[parameters('bootloaderMsDeployPackageUrl')]" } } ] @@ -343,6 +353,32 @@ "minLength": 1 }, + "bootloaderMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "securityClientIp": { "type": "string", "defaultValue": "0.0.0.0" @@ -370,7 +406,7 @@ "resources": [ { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-infrastructure')]", + "name": "[concat(parameters('deploymentId'), '-infrastructure')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", @@ -453,6 +489,11 @@ "redisCacheName": { "value": "[parameters('redisCacheName')]" }, + + "deployAzureSearch": { + "value": "[empty(parameters('solrConnectionString'))]" + }, + "searchServiceName": { "value": "[parameters('searchServiceName')]" }, @@ -481,14 +522,19 @@ }, { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-application')]", + "name": "[concat(parameters('deploymentId'), '-application-as')]", "type": "Microsoft.Resources/deployments", + "condition": "[empty(parameters('solrConnectionString'))]", "properties": { "mode": "incremental", "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]" + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-as.json'), parameters('templateLinkAccessToken'))]" }, "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + "deploymentId": { "value": "[parameters('deploymentId')]" }, @@ -676,26 +722,250 @@ }, "infrastructure": { - "value": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" + } + } + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" + ] + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-solr')]", + "type": "Microsoft.Resources/deployments", + "condition": "[not(empty(parameters('solrConnectionString')))]", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-solr.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "solrConnectionString": { + "value": "[parameters('solrConnectionString')]" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('cmSolrConfigurationMsDeployPackageUrl')]" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('cdSolrConfigurationMsDeployPackageUrl')]" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('prcSolrConfigurationMsDeployPackageUrl')]" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('repSolrConfigurationMsDeployPackageUrl')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } } }, "dependsOn": [ - "[resourceId('Microsoft.Resources/deployments', concat(deployment().name, '-infrastructure'))]" + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" ] }, { "copy": { "name": "modules", - "count": "[length(parameters('modules').items)]" + "count": "[length(variables('moduleFullList'))]" }, - "name": "[concat(deployment().name, '-' , parameters('modules').items[copyIndex()].name)]", + "name": "[concat(parameters('deploymentId'), '-' , variables('moduleFullList')[copyIndex()].name)]", + "condition": "[if(contains(variables('moduleFullList')[copyIndex()], 'deployModule'), variables('moduleFullList')[copyIndex()].deployModule, bool('true'))]", "apiVersion": "[variables('resourcesApiVersion')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", "templateLink": { - "uri": "[parameters('modules').items[copyIndex()].templateLink]" + "uri": "[variables('moduleFullList')[copyIndex()].templateLink]" }, "parameters": { "standard": { @@ -769,17 +1039,19 @@ "trackingHistoryMongoDbConnectionString": "[parameters('trackingHistoryMongoDbConnectionString')]", "trackingContactMongoDbConnectionString": "[parameters('trackingContactMongoDbConnectionString')]", + "solrConnectionString": "[parameters('solrConnectionString')]", + "securityClientIp": "[parameters('securityClientIp')]", "securityClientIpMask": "[parameters('securityClientIpMask')]", - "infrastructure": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "infrastructure": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } }, - "extension": { "value": "[parameters('modules').items[copyIndex()].parameters]" } + "extension": { "value": "[variables('moduleFullList')[copyIndex()].parameters]" } } }, "dependsOn": [ - "[concat(deployment().name, '-' , variables('dependencies')[copyIndex()].name)]" + "[concat(parameters('deploymentId'), '-' , variables('dependencies')[copyIndex()].name)]" ] } ] diff --git a/Sitecore 8.2.7/xp/nested/application-as.json b/Sitecore 8.2.7/xp/nested/application-as.json new file mode 100644 index 00000000..e3e7f40b --- /dev/null +++ b/Sitecore 8.2.7/xp/nested/application-as.json @@ -0,0 +1,499 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "resourcesApiVersion": "2016-09-01", + "searchApiVersion": "2015-08-19", + "searchPreviewApiVersion": "2015-02-28-preview", + "searchServiceNameTidy": "[trim(toLower(parameters('searchServiceName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + + "searchServiceName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-as')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "cloudSearchConnectionString": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchPreviewApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/nested/application-base.json b/Sitecore 8.2.7/xp/nested/application-base.json new file mode 100644 index 00000000..c59d62d3 --- /dev/null +++ b/Sitecore 8.2.7/xp/nested/application-base.json @@ -0,0 +1,519 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "redisApiVersion": "2016-04-01", + "appInsightsApiVersion": "2015-05-01", + "cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]", + "cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]", + "prcWebAppNameTidy": "[toLower(trim(parameters('prcWebAppName')))]", + "repWebAppNameTidy": "[toLower(trim(parameters('repWebAppName')))]", + "coreDbNameTidy": "[toLower(trim(parameters('coreSqlDatabaseName')))]", + "webDbNameTidy": "[toLower(trim(parameters('webSqlDatabaseName')))]", + "masterDbNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]", + "repDbNameTidy": "[toLower(trim(parameters('reportingSqlDatabaseName')))]", + "appInsightsNameTidy": "[toLower(trim(parameters('applicationInsightsName')))]", + "sqlServerFqdnTidy": "[trim(toLower(parameters('sqlServerFqdn')))]", + "webSqlServerFqdnTidy": "[trim(toLower(parameters('webSqlServerFqdn')))]", + "analyticsMongoDbConnStrTidy": "[trim(parameters('analyticsMongoDbConnectionString'))]", + "trackingLiveMongoDbConnStrTidy": "[trim(parameters('trackingLiveMongoDbConnectionString'))]", + "trackingHistoryMongoDbConnStrTidy": "[trim(parameters('trackingHistoryMongoDbConnectionString'))]", + "trackingContactMongoDbConnStrTidy": "[trim(parameters('trackingContactMongoDbConnectionString'))]", + "redisCacheNameTidy": "[toLower(trim(parameters('redisCacheName')))]" + }, + "parameters": { + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cdWebAppFqdn": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('infrastructure').cdWebAppFqdn]" + }, + + "sqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').sqlServerFqdn]" + }, + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').webSqlServerFqdn]" + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "cloudSearchConnectionString": { + "type": "securestring", + "defaultValue": "serviceUrl=;apiVersion=;apiKey=" + }, + + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "packageUri": "[parameters('cmMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('cmWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('cmCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('cmCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cmCoreSqlDatabaseUserName'), ';Password=', parameters('cmCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('cmMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('cmMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('cmMasterSqlDatabaseUserName'), ';Password=', parameters('cmMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('cmWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('cmWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cmWebSqlDatabaseUserName'), ';Password=', parameters('cmWebSqlDatabasePassword'), ';')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Service Url": "[concat('https://', reference(resourceId(subscription().subscriptionId, resourceGroup().name, 'Microsoft.Web/sites', variables('repWebAppNameTidy')), variables('webApiVersion')).hostNames[0])]", + "Reporting Service Api Key": "[parameters('repAuthenticationApiKey')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking Contact Connection String": "[variables('trackingContactMongoDbConnStrTidy')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "CM", + "Social Link Domain": "[parameters('cdWebAppFqdn')]", + "IP Security Client IP": "[parameters('securityClientIp')]", + "IP Security Client IP Mask": "[parameters('securityClientIpMask')]", + "Telerik Encryption Key": "[parameters('telerikEncryptionKey')]", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" ], + "properties": { + "packageUri": "[parameters('cdMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('cdWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('cdCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('cdCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cdCoreSqlDatabaseUserName'), ';Password=', parameters('cdCoreSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('cdWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('cdWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cdWebSqlDatabaseUserName'), ';Password=', parameters('cdWebSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking Contact Connection String": "[variables('trackingContactMongoDbConnStrTidy')]", + "Redis Connection String": "[concat(reference(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).hostName, ':', reference(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).sslPort, ',password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).primaryKey, ',ssl=True,abortConnect=False')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "CD", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('cdWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + }, + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" ], + "properties": { + "packageUri": "[parameters('prcMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('prcWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('prcCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('prcCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('prcCoreSqlDatabaseUserName'), ';Password=', parameters('prcCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('prcMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('prcMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('prcMasterSqlDatabaseUserName'), ';Password=', parameters('prcMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('prcWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('prcWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('prcWebSqlDatabaseUserName'), ';Password=', parameters('prcWebSqlDatabasePassword'), ';')]", + "Reporting DB User Name": "[parameters('prcReportingSqlDatabaseUserName')]", + "Reporting DB Password": "[parameters('prcReportingSqlDatabasePassword')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('prcReportingSqlDatabaseUserName'), ';Password=', parameters('prcReportingSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking Contact Connection String": "[variables('trackingContactMongoDbConnStrTidy')]", + "Tracking History Connection String": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "Processing", + "IP Security Client IP": "[parameters('securityClientIp')]", + "IP Security Client IP Mask": "[parameters('securityClientIpMask')]", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('prcWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]" ], + "properties": { + "packageUri": "[parameters('repMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('repWebAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('repCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('repCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('repCoreSqlDatabaseUserName'), ';Password=', parameters('repCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('repMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('repMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('repMasterSqlDatabaseUserName'), ';Password=', parameters('repMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('repWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('repWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('repWebSqlDatabaseUserName'), ';Password=', parameters('repWebSqlDatabasePassword'), ';')]", + "Reporting DB User Name": "[parameters('repReportingSqlDatabaseUserName')]", + "Reporting DB Password": "[parameters('repReportingSqlDatabasePassword')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('repReportingSqlDatabaseUserName'), ';Password=', parameters('repReportingSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking History Connection String": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "Reporting Service Api Key": "[parameters('repAuthenticationApiKey')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "Reporting", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('repWebAppNameTidy'), '/Extensions/MSDeploy')]" + ] + } + ] +} diff --git a/Sitecore 8.2.7/xp/nested/application-solr.json b/Sitecore 8.2.7/xp/nested/application-solr.json new file mode 100644 index 00000000..2aaf72dd --- /dev/null +++ b/Sitecore 8.2.7/xp/nested/application-solr.json @@ -0,0 +1,592 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "resourcesApiVersion": "2016-09-01", + "cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]", + "cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]", + "prcWebAppNameTidy": "[toLower(trim(parameters('prcWebAppName')))]", + "repWebAppNameTidy": "[toLower(trim(parameters('repWebAppName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "cmWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cm')]" + }, + "cmMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cmCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmcoreuser" + }, + "cmCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmcore', parameters('passwordSalt'))), uniqueString('cmcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmmasteruser" + }, + "cmMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmmaster', parameters('passwordSalt'))), uniqueString('cmmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cmWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cmwebuser" + }, + "cmWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cmweb', parameters('passwordSalt'))), uniqueString('cmweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cmweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "cdWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-cd')]" + }, + "cdMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "cdCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdcoreuser" + }, + "cdCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdcore', parameters('passwordSalt'))), uniqueString('cdcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "cdWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "cdwebuser" + }, + "cdWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('cdweb', parameters('passwordSalt'))), uniqueString('cdweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('cdweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "prcWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-prc')]" + }, + "prcMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "prcCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prccoreuser" + }, + "prcCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prccore', parameters('passwordSalt'))), uniqueString('prccore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prccore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcmasteruser" + }, + "prcMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcmaster', parameters('passwordSalt'))), uniqueString('prcmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcwebuser" + }, + "prcWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcweb', parameters('passwordSalt'))), uniqueString('prcweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "prcReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "prcreportinguser" + }, + "prcReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('prcreporting', parameters('passwordSalt'))), uniqueString('prcreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('prcreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "repWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-rep')]" + }, + "repMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "repCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repcoreuser" + }, + "repCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repcore', parameters('passwordSalt'))), uniqueString('repcore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repcore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repmasteruser" + }, + "repMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repmaster', parameters('passwordSalt'))), uniqueString('repmaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repmaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repwebuser" + }, + "repWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repweb', parameters('passwordSalt'))), uniqueString('repweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "repreportinguser" + }, + "repReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('repreporting', parameters('passwordSalt'))), uniqueString('repreporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('repreporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "repAuthenticationApiKey": { + "type": "securestring", + "minLength": 32 + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "cmSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "cdSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "prcSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "repSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "redisCacheName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-redis')]" + }, + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "securityClientIp": { + "type": "string" + }, + "securityClientIpMask": { + "type": "string" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "redisCacheName": { + "value": "[parameters('redisCacheName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "cmWebAppName": { + "value": "[parameters('cmWebAppName')]" + }, + "cmMsDeployPackageUrl": { + "value": "[parameters('cmMsDeployPackageUrl')]" + }, + "cmCoreSqlDatabaseUserName": { + "value": "[parameters('cmCoreSqlDatabaseUserName')]" + }, + "cmCoreSqlDatabasePassword": { + "value": "[parameters('cmCoreSqlDatabasePassword')]" + }, + "cmMasterSqlDatabaseUserName": { + "value": "[parameters('cmMasterSqlDatabaseUserName')]" + }, + "cmMasterSqlDatabasePassword": { + "value": "[parameters('cmMasterSqlDatabasePassword')]" + }, + "cmWebSqlDatabaseUserName": { + "value": "[parameters('cmWebSqlDatabaseUserName')]" + }, + "cmWebSqlDatabasePassword": { + "value": "[parameters('cmWebSqlDatabasePassword')]" + }, + + "cdWebAppName": { + "value": "[parameters('cdWebAppName')]" + }, + "cdMsDeployPackageUrl": { + "value": "[parameters('cdMsDeployPackageUrl')]" + }, + "cdCoreSqlDatabaseUserName": { + "value": "[parameters('cdCoreSqlDatabaseUserName')]" + }, + "cdCoreSqlDatabasePassword": { + "value": "[parameters('cdCoreSqlDatabasePassword')]" + }, + "cdWebSqlDatabaseUserName": { + "value": "[parameters('cdWebSqlDatabaseUserName')]" + }, + "cdWebSqlDatabasePassword": { + "value": "[parameters('cdWebSqlDatabasePassword')]" + }, + + "prcWebAppName": { + "value": "[parameters('prcWebAppName')]" + }, + "prcMsDeployPackageUrl": { + "value": "[parameters('prcMsDeployPackageUrl')]" + }, + "prcCoreSqlDatabaseUserName": { + "value": "[parameters('prcCoreSqlDatabaseUserName')]" + }, + "prcCoreSqlDatabasePassword": { + "value": "[parameters('prcCoreSqlDatabasePassword')]" + }, + "prcMasterSqlDatabaseUserName": { + "value": "[parameters('prcMasterSqlDatabaseUserName')]" + }, + "prcMasterSqlDatabasePassword": { + "value": "[parameters('prcMasterSqlDatabasePassword')]" + }, + "prcWebSqlDatabaseUserName": { + "value": "[parameters('prcWebSqlDatabaseUserName')]" + }, + "prcWebSqlDatabasePassword": { + "value": "[parameters('prcWebSqlDatabasePassword')]" + }, + "prcReportingSqlDatabaseUserName": { + "value": "[parameters('prcReportingSqlDatabaseUserName')]" + }, + "prcReportingSqlDatabasePassword": { + "value": "[parameters('prcReportingSqlDatabasePassword')]" + }, + + "repWebAppName": { + "value": "[parameters('repWebAppName')]" + }, + "repMsDeployPackageUrl": { + "value": "[parameters('repMsDeployPackageUrl')]" + }, + "repCoreSqlDatabaseUserName": { + "value": "[parameters('repCoreSqlDatabaseUserName')]" + }, + "repCoreSqlDatabasePassword": { + "value": "[parameters('repCoreSqlDatabasePassword')]" + }, + "repMasterSqlDatabaseUserName": { + "value": "[parameters('repMasterSqlDatabaseUserName')]" + }, + "repMasterSqlDatabasePassword": { + "value": "[parameters('repMasterSqlDatabasePassword')]" + }, + "repWebSqlDatabaseUserName": { + "value": "[parameters('repWebSqlDatabaseUserName')]" + }, + "repWebSqlDatabasePassword": { + "value": "[parameters('repWebSqlDatabasePassword')]" + }, + "repReportingSqlDatabaseUserName": { + "value": "[parameters('repReportingSqlDatabaseUserName')]" + }, + "repReportingSqlDatabasePassword": { + "value": "[parameters('repReportingSqlDatabasePassword')]" + }, + "repAuthenticationApiKey": { + "value": "[parameters('repAuthenticationApiKey')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "securityClientIp": { + "value": "[parameters('securityClientIp')]" + }, + "securityClientIpMask": { + "value": "[parameters('securityClientIpMask')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + }, + { + "name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('cmSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('cmWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + }, + { + "name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('cdSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('cdWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + }, + { + "name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('prcSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('prcWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + }, + { + "name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('repSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('repWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xp/nested/infrastructure.json b/Sitecore 8.2.7/xp/nested/infrastructure.json index e3a3ffa2..0ebb5d01 100644 --- a/Sitecore 8.2.7/xp/nested/infrastructure.json +++ b/Sitecore 8.2.7/xp/nested/infrastructure.json @@ -119,6 +119,11 @@ "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" }, + "deployAzureSearch": { + "type": "bool", + "defaultValue": true + }, + "searchServiceName": { "type": "string", "defaultValue": "[concat(parameters('deploymentId'), '-as')]" @@ -713,6 +718,7 @@ }, { "type": "Microsoft.Search/searchServices", + "condition": "[parameters('deployAzureSearch')]", "apiVersion": "[variables('searchApiVersion')]", "name": "[variables('searchServiceNameTidy')]", "location": "[parameters('searchServiceLocation')]", diff --git a/Sitecore 8.2.7/xp0/README.md b/Sitecore 8.2.7/xp0/README.md index 5c9ff2aa..6bc982fb 100644 --- a/Sitecore 8.2.7/xp0/README.md +++ b/Sitecore 8.2.7/xp0/README.md @@ -28,6 +28,17 @@ The **deploymentId** and **licenseXml** parameters are filled in by the PowerShe | trackingHistoryMongoDbConnectionString | A MongoDB connection string for the tracking.history database. | trackingContactMongoDbConnectionString | A MongoDB connection string for the tracking.contact database. +## Deploying with Solr Search +> **solrConnectionString** is a link to the Solr search service. The parameter specifies whether Solr +> search will be used for the deployment or not. The default value is empty which means that Azure Search +> will be used. In the case where solrConnectionString is populated with the Solr search connection string, +> the following parameters should be additionally specified in `azuredeploy.parameters.json`: + +| Parameter | Description +--------------------------------------------|------------------------------------------------ +| bootloaderMsDeployPackageUrl | Specifies a blob storage url to a bootloader Web Deploy package. +| singleSolrConfigurationMsDeployPackageUrl | Specifies a blob storage url to Solr **Single** configuration Web Deploy package. + > **Note:** > * The **searchServiceLocation** parameter can be added to the `azuredeploy.parameters.json` > to specify geographical region to deploy Azure Search Service. Default value is the resource diff --git a/Sitecore 8.2.7/xp0/azuredeploy.json b/Sitecore 8.2.7/xp0/azuredeploy.json index 699dda45..e7287872 100644 --- a/Sitecore 8.2.7/xp0/azuredeploy.json +++ b/Sitecore 8.2.7/xp0/azuredeploy.json @@ -5,20 +5,30 @@ "resourcesApiVersion": "2016-09-01", "defaultDependency": [ { - "name": "application" + "name": "[if(empty(parameters('solrConnectionString')), 'application-as', 'application-solr')]" } ], - "dependencies": "[concat(variables('defaultDependency'), parameters('modules').items)]" + "moduleFullList": "[union(parameters('systemModules').items, parameters('modules').items)]", + "dependencies": "[concat(variables('defaultDependency'), variables('moduleFullList'))]" }, "parameters": { "modules": { + "type": "secureObject", + "defaultValue": { + "items": [ + ] + } + }, + "systemModules": { "type": "secureObject", "defaultValue": { "items": [ { - "name": "empty", - "templateLink": "[concat(uri(parameters('templateLinkBase'), 'nested/emptyAddon.json'), parameters('templateLinkAccessToken'))]", + "name": "bootloader", + "deployModule": "[not(empty(parameters('bootloaderMsDeployPackageUrl')))]", + "templateLink": "[concat(uri(parameters('templateLinkBase'), 'addons/bootloader.json'), parameters('templateLinkAccessToken'))]", "parameters": { + "msDeployPackageUrl": "[parameters('bootloaderMsDeployPackageUrl')]" } } ] @@ -211,6 +221,21 @@ "minLength": 8, "defaultValue": "[concat(toUpper(uniqueString('singlereporting', parameters('passwordSalt'))), uniqueString('singlereporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlereporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" }, + + "bootloaderMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "singleSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + "analyticsMongoDbConnectionString": { "type": "securestring", "minLength": 1 @@ -237,7 +262,7 @@ "resources": [ { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-infrastructure')]", + "name": "[concat(parameters('deploymentId'), '-infrastructure')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", @@ -299,6 +324,10 @@ "value": "[parameters('reportingSqlDatabaseName')]" }, + "deployAzureSearch": { + "value": "[empty(parameters('solrConnectionString'))]" + }, + "searchServiceName": { "value": "[parameters('searchServiceName')]" }, @@ -339,14 +368,19 @@ }, { "apiVersion": "[variables('resourcesApiVersion')]", - "name": "[concat(deployment().name, '-application')]", + "name": "[concat(parameters('deploymentId'), '-application-as')]", "type": "Microsoft.Resources/deployments", + "condition": "[empty(parameters('solrConnectionString'))]", "properties": { "mode": "incremental", "templateLink": { - "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application.json'), parameters('templateLinkAccessToken'))]" + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-as.json'), parameters('templateLinkAccessToken'))]" }, "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + "deploymentId": { "value": "[parameters('deploymentId')]" }, @@ -445,24 +479,148 @@ }, "infrastructure": { - "value": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } } }, - "dependsOn": [ "[resourceId('Microsoft.Resources/deployments', concat(deployment().name, '-infrastructure'))]" ] + "dependsOn": [ "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" ] + }, + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-solr')]", + "type": "Microsoft.Resources/deployments", + "condition": "[not(empty(parameters('solrConnectionString')))]", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'nested/application-solr.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "templateLinkAccessToken": { + "value": "[parameters('templateLinkAccessToken')]" + }, + + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "singleWebAppName": { + "value": "[parameters('singleWebAppName')]" + }, + "singleMsDeployPackageUrl": { + "value": "[parameters('singleMsDeployPackageUrl')]" + }, + "singleCoreSqlDatabaseUserName": { + "value": "[parameters('singleCoreSqlDatabaseUserName')]" + }, + "singleCoreSqlDatabasePassword": { + "value": "[parameters('singleCoreSqlDatabasePassword')]" + }, + "singleMasterSqlDatabaseUserName": { + "value": "[parameters('singleMasterSqlDatabaseUserName')]" + }, + "singleMasterSqlDatabasePassword": { + "value": "[parameters('singleMasterSqlDatabasePassword')]" + }, + "singleWebSqlDatabaseUserName": { + "value": "[parameters('singleWebSqlDatabaseUserName')]" + }, + "singleWebSqlDatabasePassword": { + "value": "[parameters('singleWebSqlDatabasePassword')]" + }, + "singleReportingSqlDatabaseUserName": { + "value": "[parameters('singleReportingSqlDatabaseUserName')]" + }, + "singleReportingSqlDatabasePassword": { + "value": "[parameters('singleReportingSqlDatabasePassword')]" + }, + + "solrConnectionString": { + "value": "[parameters('solrConnectionString')]" + }, + "singleSolrConfigurationMsDeployPackageUrl": { + "value": "[parameters('singleSolrConfigurationMsDeployPackageUrl')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" + } + } + }, + "dependsOn": [ "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-infrastructure'))]" ] }, { "copy": { "name": "modules", - "count": "[length(parameters('modules').items)]" + "count": "[length(variables('moduleFullList'))]" }, - "name": "[concat(deployment().name, '-' , parameters('modules').items[copyIndex()].name)]", + "name": "[concat(parameters('deploymentId'), '-' , variables('moduleFullList')[copyIndex()].name)]", + "condition": "[if(contains(variables('moduleFullList')[copyIndex()], 'deployModule'), variables('moduleFullList')[copyIndex()].deployModule, bool('true'))]", "apiVersion": "[variables('resourcesApiVersion')]", "type": "Microsoft.Resources/deployments", "properties": { "mode": "incremental", "templateLink": { - "uri": "[parameters('modules').items[copyIndex()].templateLink]" + "uri": "[variables('moduleFullList')[copyIndex()].templateLink]" }, "parameters": { "standard": { @@ -501,19 +659,21 @@ "singleReportingSqlDatabaseUserName": "[parameters('singleReportingSqlDatabaseUserName')]", "singleReportingSqlDatabasePassword": "[parameters('singleReportingSqlDatabasePassword')]", + "solrConnectionString": "[parameters('solrConnectionString')]", + "analyticsMongoDbConnectionString": "[parameters('analyticsMongoDbConnectionString')]", "trackingLiveMongoDbConnectionString": "[parameters('trackingLiveMongoDbConnectionString')]", "trackingHistoryMongoDbConnectionString": "[parameters('trackingHistoryMongoDbConnectionString')]", "trackingContactMongoDbConnectionString": "[parameters('trackingContactMongoDbConnectionString')]", - "infrastructure": "[reference(concat(deployment().name, '-infrastructure')).outputs.infrastructure.value]" + "infrastructure": "[reference(concat(parameters('deploymentId'), '-infrastructure')).outputs.infrastructure.value]" } }, - "extension": { "value": "[parameters('modules').items[copyIndex()].parameters]" } + "extension": { "value": "[variables('moduleFullList')[copyIndex()].parameters]" } } }, "dependsOn": [ - "[concat(deployment().name, '-' , variables('dependencies')[copyIndex()].name)]" + "[concat(parameters('deploymentId'), '-' , variables('dependencies')[copyIndex()].name)]" ] } ] diff --git a/Sitecore 8.2.7/xp0/nested/application-as.json b/Sitecore 8.2.7/xp0/nested/application-as.json new file mode 100644 index 00000000..91e7ddcf --- /dev/null +++ b/Sitecore 8.2.7/xp0/nested/application-as.json @@ -0,0 +1,280 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "resourcesApiVersion": "2016-09-01", + "searchApiVersion": "2015-08-19", + "searchPreviewApiVersion": "2015-02-28-preview", + "searchServiceNameTidy": "[trim(toLower(parameters('searchServiceName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "searchServiceName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-as')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "singleWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-single')]" + }, + "singleMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "singleCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlecoreuser" + }, + "singleCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlecore', parameters('passwordSalt'))), uniqueString('singlecore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlecore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlemasteruser" + }, + "singleMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlemaster', parameters('passwordSalt'))), uniqueString('singlemaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlemaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlewebuser" + }, + "singleWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singleweb', parameters('passwordSalt'))), uniqueString('singleweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singleweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlereportinguser" + }, + "singleReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlereporting', parameters('passwordSalt'))), uniqueString('singlereporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlereporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "cloudSearchConnectionString": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchPreviewApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "singleWebAppName": { + "value": "[parameters('singleWebAppName')]" + }, + "singleMsDeployPackageUrl": { + "value": "[parameters('singleMsDeployPackageUrl')]" + }, + "singleCoreSqlDatabaseUserName": { + "value": "[parameters('singleCoreSqlDatabaseUserName')]" + }, + "singleCoreSqlDatabasePassword": { + "value": "[parameters('singleCoreSqlDatabasePassword')]" + }, + "singleMasterSqlDatabaseUserName": { + "value": "[parameters('singleMasterSqlDatabaseUserName')]" + }, + "singleMasterSqlDatabasePassword": { + "value": "[parameters('singleMasterSqlDatabasePassword')]" + }, + "singleWebSqlDatabaseUserName": { + "value": "[parameters('singleWebSqlDatabaseUserName')]" + }, + "singleWebSqlDatabasePassword": { + "value": "[parameters('singleWebSqlDatabasePassword')]" + }, + "singleReportingSqlDatabaseUserName": { + "value": "[parameters('singleReportingSqlDatabaseUserName')]" + }, + "singleReportingSqlDatabasePassword": { + "value": "[parameters('singleReportingSqlDatabasePassword')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xp0/nested/application-base.json b/Sitecore 8.2.7/xp0/nested/application-base.json new file mode 100644 index 00000000..5c4ee236 --- /dev/null +++ b/Sitecore 8.2.7/xp0/nested/application-base.json @@ -0,0 +1,229 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-03-01", + "appInsightsApiVersion": "2015-05-01", + "webAppNameTidy": "[toLower(trim(parameters('singleWebAppName')))]", + "coreDbNameTidy": "[toLower(trim(parameters('coreSqlDatabaseName')))]", + "webDbNameTidy": "[toLower(trim(parameters('webSqlDatabaseName')))]", + "masterDbNameTidy": "[toLower(trim(parameters('masterSqlDatabaseName')))]", + "repDbNameTidy": "[toLower(trim(parameters('reportingSqlDatabaseName')))]", + "analyticsMongoDbConnStrTidy": "[trim(parameters('analyticsMongoDbConnectionString'))]", + "trackingLiveMongoDbConnStrTidy": "[trim(parameters('trackingLiveMongoDbConnectionString'))]", + "trackingHistoryMongoDbConnStrTidy": "[trim(parameters('trackingHistoryMongoDbConnectionString'))]", + "trackingContactMongoDbConnStrTidy": "[trim(parameters('trackingContactMongoDbConnectionString'))]", + "sqlServerFqdnTidy": "[trim(toLower(parameters('sqlServerFqdn')))]", + "webSqlServerFqdnTidy": "[trim(toLower(parameters('webSqlServerFqdn')))]", + "appInsightsNameTidy": "[toLower(trim(parameters('applicationInsightsName')))]" + }, + "parameters": { + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength" : 1 + }, + + "sqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').sqlServerFqdn]" + }, + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerFqdn": { + "type": "string", + "defaultValue": "[parameters('infrastructure').webSqlServerFqdn]" + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "singleWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-single')]" + }, + "singleMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "singleCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "single-core-user" + }, + "singleCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlecore', parameters('passwordSalt'))), uniqueString('singlecore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlecore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "single-master-user" + }, + "singleMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlemaster', parameters('passwordSalt'))), uniqueString('singlemaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlemaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "single-web-user" + }, + "singleWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singleweb', parameters('passwordSalt'))), uniqueString('singleweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singleweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "single-reporting-user" + }, + "singleReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlereporting', parameters('passwordSalt'))), uniqueString('singlereporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlereporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "cloudSearchConnectionString": { + "type": "securestring", + "defaultValue": "serviceUrl=;apiVersion=;apiKey=" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject", + "defaultValue": { + } + } + }, + "resources": [ + { + "name": "[concat(variables('webAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "packageUri": "[parameters('singleMsDeployPackageUrl')]", + "dbType": "SQL", + "connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "setParameters": { + "Application Path": "[variables('webAppNameTidy')]", + "Sitecore Admin New Password": "[parameters('sitecoreAdminPassword')]", + "Core DB User Name": "[parameters('singleCoreSqlDatabaseUserName')]", + "Core DB Password": "[parameters('singleCoreSqlDatabasePassword')]", + "Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Core Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('singleCoreSqlDatabaseUserName'), ';Password=', parameters('singleCoreSqlDatabasePassword'), ';')]", + "Master DB User Name": "[parameters('singleMasterSqlDatabaseUserName')]", + "Master DB Password": "[parameters('singleMasterSqlDatabasePassword')]", + "Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Master Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('singleMasterSqlDatabaseUserName'), ';Password=', parameters('singleMasterSqlDatabasePassword'), ';')]", + "Web DB User Name": "[parameters('singleWebSqlDatabaseUserName')]", + "Web DB Password": "[parameters('singleWebSqlDatabasePassword')]", + "Web Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('webSqlServerLogin'), ';Password=', parameters('webSqlServerPassword'), ';')]", + "Web Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('webSqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('singleWebSqlDatabaseUserName'), ';Password=', parameters('singleWebSqlDatabasePassword'), ';')]", + "Reporting DB User Name": "[parameters('singleReportingSqlDatabaseUserName')]", + "Reporting DB Password": "[parameters('singleReportingSqlDatabasePassword')]", + "Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]", + "Reporting Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('singleReportingSqlDatabaseUserName'), ';Password=', parameters('singleReportingSqlDatabasePassword'), ';')]", + "Analytics Connection String": "[variables('analyticsMongoDbConnStrTidy')]", + "Cloud Search Connection String": "[parameters('cloudSearchConnectionString')]", + "Tracking Live Connection String": "[variables('trackingLiveMongoDbConnStrTidy')]", + "Tracking Contact Connection String": "[variables('trackingContactMongoDbConnStrTidy')]", + "Tracking History Connection String": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "Application Insights Instrumentation Key": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy')), variables('appInsightsApiVersion')).InstrumentationKey]", + "Application Insights Role": "Single", + "Telerik Encryption Key": "[parameters('telerikEncryptionKey')]", + "License Xml": "[parameters('licenseXml')]" + } + } + }, + { + "name": "[concat(variables('webAppNameTidy'), '/', 'appsettings')]", + "type": "Microsoft.Web/sites/config", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "WEBSITE_DYNAMIC_CACHE": 0 + }, + "dependsOn": [ + "[concat('Microsoft.Web/Sites/', variables('webAppNameTidy'), '/Extensions/MSDeploy')]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xp0/nested/application-solr.json b/Sitecore 8.2.7/xp0/nested/application-solr.json new file mode 100644 index 00000000..3c3359b1 --- /dev/null +++ b/Sitecore 8.2.7/xp0/nested/application-solr.json @@ -0,0 +1,299 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "variables": { + "webApiVersion": "2016-08-01", + "resourcesApiVersion": "2016-09-01", + "singleWebAppNameTidy": "[toLower(trim(parameters('singleWebAppName')))]" + }, + "parameters": { + "templateLinkBase": { + "type": "string", + "defaultValue": "[uri(replace(json(string(deployment().properties.templateLink)).uri,' ','%20'), '.')]" + }, + "templateLinkAccessToken": { + "type": "securestring", + "defaultValue": "" + }, + + "deploymentId": { + "type": "string", + "defaultValue": "[resourceGroup().name]" + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]" + }, + "sitecoreAdminPassword": { + "type": "securestring", + "minLength": 8 + }, + "passwordSalt": { + "type": "securestring", + "minLength": 1, + "defaultValue": "[resourceGroup().id]" + }, + "licenseXml": { + "type": "securestring", + "minLength": 1 + }, + + "sqlServerLogin": { + "type": "string", + "minLength": 1 + }, + "sqlServerPassword": { + "type": "securestring", + "minLength": 8 + }, + "webSqlServerLogin": { + "type": "string", + "minLength": 1, + "defaultValue": "[parameters('sqlServerLogin')]" + }, + "webSqlServerPassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[parameters('sqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-core-db')]" + }, + "masterSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-master-db')]" + }, + "webSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-web-db')]" + }, + "reportingSqlDatabaseName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" + }, + + "applicationInsightsName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-ai')]" + }, + + "singleWebAppName": { + "type": "string", + "defaultValue": "[concat(parameters('deploymentId'), '-single')]" + }, + "singleMsDeployPackageUrl": { + "type": "securestring", + "minLength": 1 + }, + "singleCoreSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlecoreuser" + }, + "singleCoreSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlecore', parameters('passwordSalt'))), uniqueString('singlecore', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlecore', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleMasterSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlemasteruser" + }, + "singleMasterSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlemaster', parameters('passwordSalt'))), uniqueString('singlemaster', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlemaster', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleWebSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlewebuser" + }, + "singleWebSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singleweb', parameters('passwordSalt'))), uniqueString('singleweb', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singleweb', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + "singleReportingSqlDatabaseUserName": { + "type": "string", + "minLength": 1, + "defaultValue": "singlereportinguser" + }, + "singleReportingSqlDatabasePassword": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('singlereporting', parameters('passwordSalt'))), uniqueString('singlereporting', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('singlereporting', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "analyticsMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingLiveMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingHistoryMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + "trackingContactMongoDbConnectionString": { + "type": "securestring", + "minLength": 1 + }, + + "solrConnectionString": { + "type": "securestring", + "defaultValue": "" + }, + "singleSolrConfigurationMsDeployPackageUrl": { + "type": "securestring", + "defaultValue": "" + }, + + "telerikEncryptionKey": { + "type": "securestring", + "minLength": 8, + "defaultValue": "[concat(toUpper(uniqueString('telerik', parameters('passwordSalt'))), uniqueString('telerik', parameters('sqlServerPassword'), parameters('passwordSalt')), toUpper(uniqueString('telerik', parameters('sitecoreAdminPassword'), parameters('passwordSalt'))), '4@')]" + }, + + "infrastructure": { + "type": "secureObject" + } + }, + "resources": [ + { + "apiVersion": "[variables('resourcesApiVersion')]", + "name": "[concat(parameters('deploymentId'), '-application-base')]", + "type": "Microsoft.Resources/deployments", + "properties": { + "mode": "incremental", + "templateLink": { + "uri": "[concat(uri(parameters('templateLinkBase'), 'application-base.json'), parameters('templateLinkAccessToken'))]" + }, + "parameters": { + "deploymentId": { + "value": "[parameters('deploymentId')]" + }, + "location": { + "value": "[parameters('location')]" + }, + "sitecoreAdminPassword": { + "value": "[parameters('sitecoreAdminPassword')]" + }, + "passwordSalt": { + "value": "[parameters('passwordSalt')]" + }, + "licenseXml": { + "value": "[parameters('licenseXml')]" + }, + + "sqlServerLogin": { + "value": "[parameters('sqlServerLogin')]" + }, + "sqlServerPassword": { + "value": "[parameters('sqlServerPassword')]" + }, + "webSqlServerLogin": { + "value": "[parameters('webSqlServerLogin')]" + }, + "webSqlServerPassword": { + "value": "[parameters('webSqlServerPassword')]" + }, + + "coreSqlDatabaseName": { + "value": "[parameters('coreSqlDatabaseName')]" + }, + "masterSqlDatabaseName": { + "value": "[parameters('masterSqlDatabaseName')]" + }, + "webSqlDatabaseName": { + "value": "[parameters('webSqlDatabaseName')]" + }, + "reportingSqlDatabaseName": { + "value": "[parameters('reportingSqlDatabaseName')]" + }, + + "applicationInsightsName": { + "value": "[parameters('applicationInsightsName')]" + }, + + "singleWebAppName": { + "value": "[parameters('singleWebAppName')]" + }, + "singleMsDeployPackageUrl": { + "value": "[parameters('singleMsDeployPackageUrl')]" + }, + "singleCoreSqlDatabaseUserName": { + "value": "[parameters('singleCoreSqlDatabaseUserName')]" + }, + "singleCoreSqlDatabasePassword": { + "value": "[parameters('singleCoreSqlDatabasePassword')]" + }, + "singleMasterSqlDatabaseUserName": { + "value": "[parameters('singleMasterSqlDatabaseUserName')]" + }, + "singleMasterSqlDatabasePassword": { + "value": "[parameters('singleMasterSqlDatabasePassword')]" + }, + "singleWebSqlDatabaseUserName": { + "value": "[parameters('singleWebSqlDatabaseUserName')]" + }, + "singleWebSqlDatabasePassword": { + "value": "[parameters('singleWebSqlDatabasePassword')]" + }, + "singleReportingSqlDatabaseUserName": { + "value": "[parameters('singleReportingSqlDatabaseUserName')]" + }, + "singleReportingSqlDatabasePassword": { + "value": "[parameters('singleReportingSqlDatabasePassword')]" + }, + + "analyticsMongoDbConnectionString": { + "value": "[parameters('analyticsMongoDbConnectionString')]" + }, + "trackingLiveMongoDbConnectionString": { + "value": "[parameters('trackingLiveMongoDbConnectionString')]" + }, + "trackingHistoryMongoDbConnectionString": { + "value": "[parameters('trackingHistoryMongoDbConnectionString')]" + }, + "trackingContactMongoDbConnectionString": { + "value": "[parameters('trackingContactMongoDbConnectionString')]" + }, + + "telerikEncryptionKey": { + "value": "[parameters('telerikEncryptionKey')]" + }, + + "infrastructure": { + "value": "[parameters('infrastructure')]" + } + } + } + }, + { + "name": "[concat(variables('singleWebAppNameTidy'), '/', 'MSDeploy')]", + "type": "Microsoft.Web/sites/extensions", + "location": "[parameters('location')]", + "apiVersion": "[variables('webApiVersion')]", + "properties": { + "addOnPackages" : [ + { + "packageUri": "[parameters('singleSolrConfigurationMsDeployPackageUrl')]", + "setParameters": { + "Application Path": "[variables('singleWebAppNameTidy')]", + "Solr Connection String": "[parameters('solrConnectionString')]" + } + } + ] + }, + "dependsOn": [ + "[resourceId('Microsoft.Resources/deployments', concat(parameters('deploymentId'), '-application-base'))]" + ] + } + ] +} \ No newline at end of file diff --git a/Sitecore 8.2.7/xp0/nested/infrastructure.json b/Sitecore 8.2.7/xp0/nested/infrastructure.json index 27f880e4..33bcb063 100644 --- a/Sitecore 8.2.7/xp0/nested/infrastructure.json +++ b/Sitecore 8.2.7/xp0/nested/infrastructure.json @@ -96,6 +96,11 @@ "defaultValue": "[concat(parameters('deploymentId'), '-reporting-db')]" }, + "deployAzureSearch": { + "type": "bool", + "defaultValue": true + }, + "searchServiceName": { "type": "string", "defaultValue": "[concat(parameters('deploymentId'), '-as')]" @@ -305,6 +310,7 @@ }, { "type": "Microsoft.Search/searchServices", + "condition": "[parameters('deployAzureSearch')]", "apiVersion": "[variables('searchApiVersion')]", "name": "[variables('searchServiceNameTidy')]", "location": "[parameters('searchServiceLocation')]",