Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added template for ASE based on XP topology #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Sitecore 9.0.0/XPASE/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Sitecore XP Environment with App Service Environment

Visualize:
[Infrastructure](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FSitecore%2Fsitecore-azure-quickstart-templates%2Fmaster%2FSitecore%209.0.0%2Fxp%2Fnested%2Finfrastructure.json),
[Application deployment](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FSitecore%2Fsitecore-azure-quickstart-templates%2Fmaster%2FSitecore%209.0.0%2Fxp%2Fnested%2Fapplication.json)

This template creates a Sitecore XP Environment with all resources necessary to run Sitecore.

Resources provisioned:

* Azure SQL databases : core, master, web, reporting, pools, tasks, forms, refdata, smm, shard0, shard1, ma
* Azure Redis Cache for session state
* Sitecore roles: Content Delivery, Content Management, Processing, Reporting
* Hosting plans: one per role
* Preconfigured Web Applications, based on the provided WebDeploy packages
* XConnect services: Search, Collection, Reference data, Marketing Automation, Marketing Automation Reporting
* Hosting Plans: XConnect Basic, XConnect Resource Intensive
* Preconfigured Web Applications, based on the provided WebDeploy packages
* Azure Search Service
* Application Insights for diagnostics and monitoring
* App Services Environment
* Virtual Network

## Parameters

The **deploymentId** and **licenseXml** parameters in azuredeploy.parameters.json are filled in by the PowerShell script using **Name** and **LicenseXmlPath** parameters respectively.

|Parameter | Description
--------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------
| location | The geographical region of the current deployment.
| sqlServerLogin | The name of the administrator account for Azure SQL server that will be created.
| sqlServerPassword | The password for the administrator account for Azure SQL server.
| sitecoreAdminPassword | The new password for the Sitecore **admin** account.
| repAuthenticationApiKey | A unique value (e.g. a GUID) that will be used as authentication key for communication between Content Management and the Reporting Web App. **Note: The minimal required length is 32 symbols**
| cmMsDeployPackageUrl | The HTTP(s) URL to a Sitecore XP Content Management Web Deploy package.
| cdMsDeployPackageUrl | The HTTP(s) URL to a Sitecore XP Content Delivery Web Deploy package.
| prcMsDeployPackageUrl | The HTTP(s) URL to a Sitecore XP Processing Web Deploy package.
| repMsDeployPackageUrl | The HTTP(s) URL to a Sitecore XP Reporting Web Deploy package.
| xcRefDataMsDeployPackageUrl | The HTTP(s) URL to a XConnect Reference Data service Web Deploy package.
| xcCollectMsDeployPackageUrl | The HTTP(s) URL to a XConnect Collection service Web Deploy package.
| xcSearchMsDeployPackageUrl | The HTTP(s) URL to a XConnect Search service Web Deploy package.
| maOpsMsDeployPackageUrl | The HTTP(s) URL to a Marketing Automation service Web Deploy package.
| maRepMsDeployPackageUrl | The HTTP(s) URL to a Marketing Automation Reporting service Web Deploy package.
| authCertificateBlob | A Base64-encoded blob of the authentication certificate in PKCS #12 format.
| authCertificatePassword | A password to the authentication certificate.
| aseSize | Value can be either small, medium or large. This sets the size of frontend scale factor, amount of worker pools and multisize
122 changes: 122 additions & 0 deletions Sitecore 9.0.0/XPASE/addons/bootloader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"webApiVersion": "2016-08-01",
"cmWebAppNameTidy": "[toLower(trim(parameters('cmWebAppName')))]",
"cdWebAppNameTidy": "[toLower(trim(parameters('cdWebAppName')))]",
"prcWebAppNameTidy": "[toLower(trim(parameters('prcWebAppName')))]",
"repWebAppNameTidy": "[toLower(trim(parameters('repWebAppName')))]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"deploymentId": null,
"location": null,
"cmWebAppName": null,
"cdWebAppName": null,
"prcWebAppName": null,
"repWebAppName": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {}
},
"deploymentId": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]"
},
"location": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').location, resourceGroup().location)]"
},
"cmWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').cmWebAppName, concat(parameters('deploymentId'), '-cm'))]"
},
"cdWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').cdWebAppName, concat(parameters('deploymentId'), '-cd'))]"
},
"prcWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').prcWebAppName, concat(parameters('deploymentId'), '-prc'))]"
},
"repWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').repWebAppName, concat(parameters('deploymentId'), '-rep'))]"
},
"msDeployPackageUrl": {
"type": "securestring",
"defaultValue": "[parameters('extension').msDeployPackageUrl]"
}
},
"resources": [
{
"name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('msDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]"
}
}
]
}
},
{
"name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('msDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]"
}
}
]
}
},
{
"name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('msDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('prcWebAppNameTidy')]"
}
}
]
}
},
{
"name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"packageUri": "[parameters('msDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('repWebAppNameTidy')]"
}
}
]
}
}
]
}
208 changes: 208 additions & 0 deletions Sitecore 9.0.0/XPASE/addons/generic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"variables": {
"webApiVersion": "2016-08-01",

"sqlServerFqdnTidy": "[trim(toLower(parameters('sqlServerFqdn')))]",

"coreSqlDatabaseNameTidy": "[trim(toLower(parameters('coreSqlDatabaseName')))]",
"masterSqlDatabaseNameTidy": "[trim(toLower(parameters('masterSqlDatabaseName')))]",
"reportingSqlDatabaseNameTidy": "[trim(toLower(parameters('reportingSqlDatabaseName')))]",

"cmWebAppNameTidy": "[trim(toLower(parameters('cmWebAppName')))]",
"cdWebAppNameTidy": "[trim(toLower(parameters('cdWebAppName')))]",
"prcWebAppNameTidy": "[trim(toLower(parameters('prcWebAppName')))]",
"repWebAppNameTidy": "[trim(toLower(parameters('repWebAppName')))]"
},
"parameters": {
"standard": {
"type": "secureObject",
"defaultValue": {
"infrastructure": { "sqlServerFqdn":null },
"deploymentId": null,
"location": null,
"sqlServerLogin": null,
"sqlServerPassword": null,
"coreSqlDatabaseName": null,
"masterSqlDatabaseName": null,
"reportingSqlDatabaseName": null,
"cmWebAppName": null,
"cdWebAppName": null,
"prcWebAppName": null,
"repWebAppName": null
}
},
"extension": {
"type": "secureObject",
"defaultValue": {
"cmMsDeployPackageUrl": null,
"cdMsDeployPackageUrl": null,
"prcMsDeployPackageUrl": null,
"repMsDeployPackageUrl": null
}
},
"infrastructure": {
"type": "secureObject",
"defaultValue": "[parameters('standard').infrastructure]"
},

"deploymentId": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').deploymentId, resourceGroup().name)]"
},
"location": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').location, resourceGroup().location)]"
},

"sqlServerFqdn": {
"type": "string",
"minLength": 1,
"defaultValue": "[parameters('infrastructure').sqlServerFqdn]"
},
"sqlServerLogin": {
"type": "string",
"minLength": 1,
"defaultValue": "[parameters('standard').sqlServerLogin]"
},
"sqlServerPassword": {
"type": "securestring",
"minLength": 8,
"defaultValue": "[parameters('standard').sqlServerPassword]"
},

"coreSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').coreSqlDatabaseName, concat(parameters('deploymentId'), '-core-db'))]"
},
"masterSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').masterSqlDatabaseName, concat(parameters('deploymentId'), '-master-db'))]"
},
"reportingSqlDatabaseName": {
"type": "string",
"minLength": 1,
"defaultValue": "[coalesce(parameters('standard').reportingSqlDatabaseName, concat(parameters('deploymentId'), '-reporting-db'))]"
},

"cmWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').cmWebAppName, concat(parameters('deploymentId'), '-cm'))]"
},
"cdWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').cdWebAppName, concat(parameters('deploymentId'), '-cd'))]"
},
"prcWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').prcWebAppName, concat(parameters('deploymentId'), '-prc'))]"
},
"repWebAppName": {
"type": "string",
"defaultValue": "[coalesce(parameters('standard').repWebAppName, concat(parameters('deploymentId'), '-rep'))]"
},

"cmMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').cmMsDeployPackageUrl]"
},
"cdMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').cdMsDeployPackageUrl]"
},
"prcMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').prcMsDeployPackageUrl]"
},
"repMsDeployPackageUrl": {
"type": "securestring",
"minLength": 1,
"defaultValue": "[parameters('extension').repMsDeployPackageUrl]"
}
},
"resources": [
{
"name": "[concat(variables('cmWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"packageUri": "[parameters('cmMsDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('cmWebAppNameTidy')]",
"Core Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('coreSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
}
]
}
},
{
"name": "[concat(variables('cdWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"packageUri": "[parameters('cdMsDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('cdWebAppNameTidy')]"
}
}
]
}
},
{
"name": "[concat(variables('prcWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"packageUri": "[parameters('prcMsDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('prcWebAppNameTidy')]",
"Reporting Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('reportingSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
}
]
}
},
{
"name": "[concat(variables('repWebAppNameTidy'), '/', 'MSDeploy')]",
"type": "Microsoft.Web/sites/extensions",
"location": "[parameters('location')]",
"apiVersion": "[variables('webApiVersion')]",
"properties": {
"addOnPackages": [
{
"dbType": "SQL",
"connectionString": "[concat('Data Source=tcp:', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=master;User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]",
"packageUri": "[parameters('repMsDeployPackageUrl')]",
"setParameters": {
"Application Path": "[variables('repWebAppNameTidy')]",
"Master Admin Connection String": "[concat('Encrypt=True;TrustServerCertificate=False;Data Source=', variables('sqlServerFqdnTidy'), ',1433;Initial Catalog=',variables('masterSqlDatabaseNameTidy'),';User Id=', parameters('sqlServerLogin'), ';Password=', parameters('sqlServerPassword'), ';')]"
}
}
]
}
}
]
}
Loading