From e248ebc5d1b7a741e52a8b3628d420f57bff6c38 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 24 Jan 2017 18:46:35 -0500 Subject: [PATCH 1/5] Update the Sitecore Downloads link.l --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5843a26f..07e85360 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Choose the compatible templates for your Sitecore version: # Sample PowerShell Script -Below is a sample PowerShell script that can help you to get up and running quickly with the ARM Templates. There is also a Sitecore PowerShell CmdLet available for download at [Sitecore Downloads Site](https://dev.sitecore.net/) that makes the deployment even easier. +Below is a sample PowerShell script that can help you to get up and running quickly with the ARM Templates. There is also a Sitecore PowerShell CmdLet available for download at [Sitecore Downloads Site](https://dev.sitecore.net/Downloads.aspx) that makes the deployment even easier. ```PowerShell $ArmTemplatePath = ".\xp\azuredeploy.json"; $ArmParametersPath = ".\xp\azuredeploy.parameters.json"; From 3ebb38bfafb3c3a874ecc372f53db5b1758f86d4 Mon Sep 17 00:00:00 2001 From: mathieu-benoit Date: Thu, 2 Feb 2017 20:20:07 -0500 Subject: [PATCH 2/5] Microsoft.Web/Sites/config - connectionstrings --- Sitecore 8.2.1/xm/azuredeploy.json | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Sitecore 8.2.1/xm/azuredeploy.json b/Sitecore 8.2.1/xm/azuredeploy.json index 587e40cb..8e6158fb 100644 --- a/Sitecore 8.2.1/xm/azuredeploy.json +++ b/Sitecore 8.2.1/xm/azuredeploy.json @@ -392,6 +392,42 @@ "License Xml": "[variables('licenseXml')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[resourceId('Microsoft.Web/Sites', variables('cdWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('cdWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy'))]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cd.core.sqldatabase.username'), ';Password=', parameters('cd.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cd.web.sqldatabase.username'), ';Password=', parameters('cd.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + }, + "redis.sessions": { + "value": "[concat(reference(variables('redisCacheNameTidy')).hostName, ':', reference(variables('redisCacheNameTidy')).sslPort, ',password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).primaryKey, ',ssl=True,abortConnect=False')]", + "type": "Custom" + } + } } ] }, From c506760c5dee933bd16d75520113cba60c6f6c21 Mon Sep 17 00:00:00 2001 From: mathieu-benoit Date: Thu, 2 Feb 2017 21:11:57 -0500 Subject: [PATCH 3/5] Microsoft.Web/Sites/config - connectionstrings --- Sitecore 8.2.1/xm/azuredeploy.json | 38 +++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/Sitecore 8.2.1/xm/azuredeploy.json b/Sitecore 8.2.1/xm/azuredeploy.json index 8e6158fb..e6614a82 100644 --- a/Sitecore 8.2.1/xm/azuredeploy.json +++ b/Sitecore 8.2.1/xm/azuredeploy.json @@ -329,6 +329,42 @@ "IP Security Client IP Mask": "[parameters('security.clientIpMask')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cm.core.sqldatabase.username'), ';Password=', parameters('cm.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "master": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('cm.master.sqldatabase.username'), ';Password=', parameters('cm.master.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cm.web.sqldatabase.username'), ';Password=', parameters('cm.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, @@ -398,7 +434,7 @@ "name": "connectionstrings", "type": "config", "dependsOn": [ - "[resourceId('Microsoft.Web/Sites', variables('cdWebAppNameTidy'))]", + "[concat('Microsoft.Web/sites/', variables('cdWebAppNameTidy'))]", "[concat('Microsoft.Web/Sites/', variables('cdWebAppNameTidy'), '/Extensions/MSDeploy')]", "[resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy'))]", "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", From 2c9d3b0bb91919bea247db64a884c8ee373a8b5f Mon Sep 17 00:00:00 2001 From: mathieu-benoit Date: Thu, 2 Feb 2017 21:20:41 -0500 Subject: [PATCH 4/5] Microsoft.Web/Sites/config - connectionstrings --- Sitecore 8.2.1/xp0/azuredeploy.json | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Sitecore 8.2.1/xp0/azuredeploy.json b/Sitecore 8.2.1/xp0/azuredeploy.json index 00c7e020..b8d8a54b 100644 --- a/Sitecore 8.2.1/xp0/azuredeploy.json +++ b/Sitecore 8.2.1/xp0/azuredeploy.json @@ -282,6 +282,63 @@ "License Xml": "[variables('licenseXml')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('webAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('webAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('single.core.sqldatabase.username'), ';Password=', parameters('single.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "master": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('single.master.sqldatabase.username'), ';Password=', parameters('single.master.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('single.web.sqldatabase.username'), ';Password=', parameters('single.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "reporting": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('single.reporting.sqldatabase.username'), ';Password=', parameters('single.reporting.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "tracking.live": { + "value": "[variables('trackingLiveMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.history": { + "value": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.contact": { + "value": "[variables('trackingContactMongoDbConnStrTidy')]", + "type": "Custom" + }, + "analytics": { + "value": "[variables('analyticsMongoDbConnStrTidy')]", + "type": "Custom" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, From 61f9db318aee9ac30779975d4bd228cc606d0ca9 Mon Sep 17 00:00:00 2001 From: mathieu-benoit Date: Thu, 2 Feb 2017 22:01:39 -0500 Subject: [PATCH 5/5] Microsoft.Web/Sites/config - connectionstrings --- Sitecore 8.2.1/xm/azuredeploy.json | 8 +- Sitecore 8.2.1/xp/azuredeploy.json | 224 +++++++++++++++++++++++++++- Sitecore 8.2.1/xp0/azuredeploy.json | 9 +- 3 files changed, 237 insertions(+), 4 deletions(-) diff --git a/Sitecore 8.2.1/xm/azuredeploy.json b/Sitecore 8.2.1/xm/azuredeploy.json index e6614a82..dffc29fd 100644 --- a/Sitecore 8.2.1/xm/azuredeploy.json +++ b/Sitecore 8.2.1/xm/azuredeploy.json @@ -300,7 +300,13 @@ "type": "extensions", "location": "[parameters('location')]", "apiVersion": "[variables('webApiVersion')]", - "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'))]", "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]" ], + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'))]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]" ], "properties": { "packageUri": "[parameters('cm.msdeploy.packageurl')]", "dbType": "SQL", diff --git a/Sitecore 8.2.1/xp/azuredeploy.json b/Sitecore 8.2.1/xp/azuredeploy.json index f1563411..8f150cfc 100644 --- a/Sitecore 8.2.1/xp/azuredeploy.json +++ b/Sitecore 8.2.1/xp/azuredeploy.json @@ -525,6 +525,61 @@ "IP Security Client IP Mask": "[parameters('security.clientIpMask')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[concat('Microsoft.Web/sites/', variables('repWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('repWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cm.core.sqldatabase.username'), ';Password=', parameters('cm.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "master": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('cm.master.sqldatabase.username'), ';Password=', parameters('cm.master.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cm.web.sqldatabase.username'), ';Password=', parameters('cm.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "tracking.live": { + "value": "[variables('trackingLiveMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.contact": { + "value": "[variables('trackingContactMongoDbConnStrTidy')]", + "type": "Custom" + }, + "analytics": { + "value": "[variables('analyticsMongoDbConnStrTidy')]", + "type": "Custom" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "reporting.apikey": { + "value": "[parameters('rep.authentication.apikey')]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, @@ -591,6 +646,55 @@ "License Xml": "[variables('licenseXml')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('cdWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('cdWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy'))]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('cm.core.sqldatabase.username'), ';Password=', parameters('cm.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('cm.web.sqldatabase.username'), ';Password=', parameters('cm.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "tracking.live": { + "value": "[variables('trackingLiveMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.contact": { + "value": "[variables('trackingContactMongoDbConnStrTidy')]", + "type": "Custom" + }, + "analytics": { + "value": "[variables('analyticsMongoDbConnStrTidy')]", + "type": "Custom" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "redis.sessions": { + "value": "[concat(reference(variables('redisCacheNameTidy')).hostName, ':', reference(variables('redisCacheNameTidy')).sslPort, ',password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('redisCacheNameTidy')), variables('redisApiVersion')).primaryKey, ',ssl=True,abortConnect=False')]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, @@ -611,7 +715,7 @@ }, "location": "[parameters('location')]", "dependsOn": [ - "[resourceId('Microsoft.Web/serverfarms', variables('prcHostingPlanNameTidy'))]", + "[resourceId('Microsoft.Web/serverfarms', variables('prcHostingPlanNameTidy'))]" ], "tags": { "provider": "[parameters('sitecoreTags').provider]" @@ -668,6 +772,64 @@ "IP Security Client IP Mask": "[parameters('security.clientIpMask')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('prcWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('prcWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('prc.core.sqldatabase.username'), ';Password=', parameters('prc.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "master": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('prc.master.sqldatabase.username'), ';Password=', parameters('prc.master.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('prc.web.sqldatabase.username'), ';Password=', parameters('prc.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "reporting": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('prc.reporting.sqldatabase.username'), ';Password=', parameters('prc.reporting.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "tracking.live": { + "value": "[variables('trackingLiveMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.history": { + "value": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.contact": { + "value": "[variables('trackingContactMongoDbConnStrTidy')]", + "type": "Custom" + }, + "analytics": { + "value": "[variables('analyticsMongoDbConnStrTidy')]", + "type": "Custom" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, @@ -688,7 +850,7 @@ }, "location": "[parameters('location')]", "dependsOn": [ - "[resourceId('Microsoft.Web/serverfarms', variables('repHostingPlanNameTidy'))]", + "[resourceId('Microsoft.Web/serverfarms', variables('repHostingPlanNameTidy'))]" ], "tags": { "provider": "[parameters('sitecoreTags').provider]" @@ -743,6 +905,64 @@ "License Xml": "[variables('licenseXml')]" } } + }, + { + "apiVersion": "[variables('webApiVersion')]", + "name": "connectionstrings", + "type": "config", + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('repWebAppNameTidy'))]", + "[concat('Microsoft.Web/Sites/', variables('repWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[concat('Microsoft.Web/sites/', variables('cmWebAppNameTidy'), '/Extensions/MSDeploy')]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" + ], + "properties": { + "core": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('coreDbNameTidy'),';User Id=', parameters('prc.core.sqldatabase.username'), ';Password=', parameters('prc.core.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "master": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('masterDbNameTidy'),';User Id=', parameters('prc.master.sqldatabase.username'), ';Password=', parameters('prc.master.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "web": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('webDbNameTidy'),';User Id=', parameters('prc.web.sqldatabase.username'), ';Password=', parameters('prc.web.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "reporting": { + "value": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', reference(concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'))).fullyQualifiedDomainName, ',1433;Initial Catalog=',variables('repDbNameTidy'),';User Id=', parameters('prc.reporting.sqldatabase.username'), ';Password=', parameters('prc.reporting.sqldatabase.password'), ';')]", + "type": "SQLAzure" + }, + "tracking.live": { + "value": "[variables('trackingLiveMongoDbConnStrTidy')]", + "type": "Custom" + }, + "tracking.history": { + "value": "[variables('trackingHistoryMongoDbConnStrTidy')]", + "type": "Custom" + }, + "analytics": { + "value": "[variables('analyticsMongoDbConnStrTidy')]", + "type": "Custom" + }, + "reporting.apikey": { + "value": "[parameters('rep.authentication.apikey')]", + "type": "Custom" + }, + "cloud.search": { + "value": "[concat('serviceUrl=https://', variables('searchServiceNameTidy'), '.search.windows.net;apiVersion=', variables('searchApiVersion'), ';apiKey=', listAdminKeys(resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy')), variables('searchApiVersion')).primaryKey)]", + "type": "Custom" + }, + "appinsights.instrumentationkey": { + "value": "[reference(resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))).InstrumentationKey]", + "type": "Custom" + } + } } ] }, diff --git a/Sitecore 8.2.1/xp0/azuredeploy.json b/Sitecore 8.2.1/xp0/azuredeploy.json index b8d8a54b..39751229 100644 --- a/Sitecore 8.2.1/xp0/azuredeploy.json +++ b/Sitecore 8.2.1/xp0/azuredeploy.json @@ -247,7 +247,14 @@ "type": "extensions", "location": "[parameters('location')]", "apiVersion": "[variables('webApiVersion')]", - "dependsOn": [ "[concat('Microsoft.Web/sites/', variables('webAppNameTidy'))]", "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" ], + "dependsOn": [ + "[concat('Microsoft.Web/sites/', variables('webAppNameTidy'))]", + "[resourceId('Microsoft.Search/searchServices', variables('searchServiceNameTidy'))]", + "[resourceId('Microsoft.Insights/Components', variables('appInsightsNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('coreDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('masterDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('webDbServerNameTidy'), '/databases/', variables('webDbNameTidy'))]", + "[concat('Microsoft.Sql/servers/', variables('dbServerNameTidy'), '/databases/', variables('repDbNameTidy'))]" ], "properties": { "packageUri": "[parameters('single.msdeploy.packageurl')]", "dbType": "SQL",