Install/OnPrem/XM/AllInOne/sitecore-xm0.json
{
"Parameters": { "Package": { "Type": "string", "Description": "The path to the Web Deploy package to deploy." }, "LicenseFile": { "Type": "string", "Description": "The path to the Sitecore license file." }, "SqlDbPrefix": { "Type": "string", "Description": "The prefix used for all Sql databases." }, "SiteName": { "Type": "string", "DefaultValue": "Sitecore", "Description": "The name of the site to be deployed." }, "SitecoreAdminPassword": { "Type": "string", "DefaultValue": "b", "Description": "The admin password for the Sitecore instance." }, "SqlAdminUser": { "Type": "string", "DefaultValue": "sa", "Description": "The Sql admin user account to use when installing databases." }, "SqlAdminPassword": { "Type": "string", "DefaultValue": "12345", "Description": "The Sql admin password to use when installing databases." }, "SqlCoreUser": { "Type": "string", "DefaultValue": "coreuser", "Description": "The user to create and use in Core connection string." }, "SqlCorePassword": { "Type": "string", "DefaultValue": "Test12345", "Description": "The Sql password for the Core connection string in Sitecore." }, "SqlMasterUser": { "Type": "string", "DefaultValue": "masteruser", "Description": "The user to create and use in Master connection string." }, "SqlMasterPassword": { "Type": "string", "DefaultValue": "Test12345", "Description": "The Sql password for the Master connection string in Sitecore." }, "SqlWebUser": { "Type": "string", "DefaultValue": "webuser", "Description": "The user to create and use in Web connection string." }, "SqlWebPassword": { "Type": "string", "DefaultValue": "Test12345", "Description": "The Sql password for the Web connection string in Sitecore." }, "SqlFormsUser": { "Type": "string", "DefaultValue": "formsuser", "Description": "The user to create and use in Experience Forms connection string." }, "SqlFormsPassword": { "Type": "string", "DefaultValue": "Test12345", "Description": "The Sql password for the Experience Forms connection string in Sitecore." }, "SqlServer": { "Type": "string", "DefaultValue": ".\\SQLSERVER", "Description": "The Sql Server where databases will be installed." }, "SolrCorePrefix": { "Type": "string", "Description": "The prefix used for all Solr cores." }, "SolrUrl": { "Type": "string", "Description": "The Solr instance to use." }, "TelerikEncryptionKey": { "Type": "string", "DefaultValue": "PutYourCustomEncryptionKeyHereFrom32To256CharactersLong", "Description": "The key to be used by Telerik controls to encrypt interaction with Content Editors. It's a random string between 32 and 256 symbols long." }, "InstallDirectory": { "Type": "string", "Description": "Installation directory" }, "SSLCert": { "Type": "string", "Description": "The certificate to use for HTTPS web bindings. Provide the name or the thumbprint. If not provided a certificate will be generated.", "DefaultValue": "" } }, "Variables": { "Sql.Database.Core": "[concat(parameter('SqlDbPrefix'), '_Core')]", "Sql.Database.Master": "[concat(parameter('SqlDbPrefix'), '_Master')]", "Sql.Database.Web": "[concat(parameter('SqlDbPrefix'), '_Web')]", "Sql.Database.Forms": "[concat(parameter('SqlDbPrefix'), '_ExperienceForms')]", "Security.CertificateStore": "Cert:\\Localmachine\\My", "Security.SSL.CertificateThumbprint": "[GetCertificateThumbprint(parameter('SSLCert'), variable('Security.CertificateStore'))]", "Site.PhysicalPath": "[parameter('InstallDirectory')]", "Site.DataFolder": "[joinpath(variable('Site.PhysicalPath'), 'App_Data')]", "Solr.Core.Name": "[concat(parameter('SolrCorePrefix'), '_core_index')]", "Solr.Master.Name": "[concat(parameter('SolrCorePrefix'), '_master_index')]", "Solr.Web.Name": "[concat(parameter('SolrCorePrefix'), '_web_index')]", "Solr.MD.Master.Name": "[concat(parameter('SolrCorePrefix'), '_marketingdefinitions_master')]", "Solr.MD.Web.Name": "[concat(parameter('SolrCorePrefix'), '_marketingdefinitions_web')]", "Solr.MA.Master.Name": "[concat(parameter('SolrCorePrefix'), '_marketing_asset_index_master')]", "Solr.MA.Web.Name": "[concat(parameter('SolrCorePrefix'), '_marketing_asset_index_web')]", "Solr.Testing.Name": "[concat(parameter('SolrCorePrefix'), '_testing_index')]", "Solr.Suggested.Name": "[concat(parameter('SolrCorePrefix'), '_suggested_test_index')]", "Solr.FXM.Master.Name": "[concat(parameter('SolrCorePrefix'), '_fxm_master_index')]", "Solr.FXM.Web.Name": "[concat(parameter('SolrCorePrefix'), '_fxm_web_index')]" }, "Tasks": { "CreatePaths": { "Type": "EnsurePath", "Params": { "Exists": [ "[variable('Site.PhysicalPath')]" ] } }, "CreateAppPool": { "Type": "AppPool", "Params": { "Name": "[parameter('SiteName')]", "Properties": { "ProcessModel": { "identityType": "ApplicationPoolIdentity" } } } }, "CreateWebsite": { "Type": "Website", "Params": { "Name": "[parameter('SiteName')]", "ApplicationPool": "[parameter('SiteName')]", "PhysicalPath": "[variable('Site.PhysicalPath')]" } }, "StopWebsite": { "Type": "ManageWebsite", "Params": { "Name": "[parameter('SiteName')]", "Action": "Stop" } }, "StopAppPool": { "Type": "ManageAppPool", "Params": { "Name": "[parameter('SiteName')]", "Action": "Stop" } }, "RemoveDefaultBinding": { "Type": "WebBinding", "Params": { "SiteName": "[parameter('SiteName')]", "Remove": [ { "Port": "80", "IPAddress": "*" } ] } }, "CreateBindingsWithThumprint": { "Type": "WebBinding", "Params": { "SiteName": "[parameter('SiteName')]", "Add": [ { "HostHeader": "[parameter('SiteName')]", "Protocol": "https", "SSLFlags": 1, "Thumbprint": "[variable('Security.SSL.CertificateThumbprint')]" } ] }, "Skip": "[not(parameter('SSLCert'))]" }, "CreateHostHeader": { "Type": "HostHeader", "Params": { "HostName": "[parameter('SiteName')]" } }, "SetPermissions": { "Type": "FilePermissions", "Params": { "Path": "[variable('Site.PhysicalPath')]", "Rights": [ { "User": "[concat('IIS AppPool\\', parameter('SiteName'))]", "FileSystemRights": "FullControl", "InheritanceFlags": [ "ContainerInherit", "ObjectInherit" ] } ] } }, "InstallWDP": { "Type": "WebDeploy", "Params": { "Verb": "Sync", "Arguments": { "Source": { "Package": "[resolvepath(parameter('Package'))]" }, "Dest": "Auto", "Skip": [ { "ObjectName": "dbDacFx", "absolutePath": "Sitecore.Exm.Master.dacpac" }, { "ObjectName": "dbFullSql", "absolutePath": "CreateUser.ExmMaster.sql" }, { "ObjectName": "dbDacFx", "absolutePath": "Sitecore.Reporting.dacpac" }, { "ObjectName": "dbFullSql", "absolutePath": "CreateUser.Reporting.sql" }, { "ObjectName": "dbDacFx", "absolutePath": "Sitecore.Processing.tasks.dacpac" }, { "ObjectName": "dbFullSql", "absolutePath": "CreateUser.ProcessingTasks.sql" } ], "SetParam": [ { "Name": "Application Path", "Value": "[parameter('SiteName')]" }, { "Name": "Database Server Name", "Value": "[parameter('SqlServer')]" }, { "Name": "Sitecore Admin New Password", "Value": "[parameter('SitecoreAdminPassword')]" }, { "Name": "Database Admin User Name", "Value": "[parameter('SqlAdminUser')]" }, { "Name": "Database Admin User Password", "Value": "[parameter('SqlAdminPassword')]" }, { "Name": "Core DB Name", "Value": "[variable('Sql.Database.Core')]" }, { "Name": "Master DB Name", "Value": "[variable('Sql.Database.Master')]" }, { "Name": "Web DB Name", "Value": "[variable('Sql.Database.Web')]" }, { "Name": "Experience Forms DB Name", "Value": "[variable('Sql.Database.Forms')]" }, { "Name": "Core DB User Name", "Value": "[parameter('SqlCoreUser')]" }, { "Name": "Core DB User Password", "Value": "[parameter('SqlCorePassword')]" }, { "Name": "Master DB User Name", "Value": "[parameter('SqlMasterUser')]" }, { "Name": "Master DB User Password", "Value": "[parameter('SqlMasterPassword')]" }, { "Name": "Web DB User Name", "Value": "[parameter('SqlWebUser')]" }, { "Name": "Web DB User Password", "Value": "[parameter('SqlWebPassword')]" }, { "Name": "Experience Forms DB User Name", "Value": "[parameter('SqlFormsUser')]" }, { "Name": "Experience Forms DB User Password", "Value": "[parameter('SqlFormsPassword')]" }, { "Name": "SOLR Connection String", "Value": "[parameter('SolrUrl')]" }, { "Name": "Solr Core Index Name", "Value": "[variable('Solr.Core.Name')]" }, { "Name": "Solr Master Index Name", "Value": "[variable('Solr.Master.Name')]" }, { "Name": "Solr Web Index Name", "Value": "[variable('Solr.Web.Name')]" }, { "Name": "Solr Marketing Definitions Master Index Name", "Value": "[variable('Solr.MD.Master.Name')]" }, { "Name": "Solr Marketing Definitions Web Index Name", "Value": "[variable('Solr.MD.Web.Name')]" }, { "Name": "Solr Marketing Asset Master Index Name", "Value": "[variable('Solr.MA.Master.Name')]" }, { "Name": "Solr Marketing Asset Web Index Name", "Value": "[variable('Solr.MA.Web.Name')]" }, { "Name": "Solr Testing Index Name", "Value": "[variable('Solr.Testing.Name')]" }, { "Name": "Solr Suggested Index Name", "Value": "[variable('Solr.Suggested.Name')]" }, { "Name": "Solr FXM Master Index Name", "Value": "[variable('Solr.FXM.Master.Name')]" }, { "Name": "Solr FXM Web Index Name", "Value": "[variable('Solr.FXM.Web.Name')]" }, { "Name": "Telerik Encryption Key", "Value": "[parameter('TelerikEncryptionKey')]" }, { "Name": "Reporting DB Name", "Value": "UNUSED" }, { "Name": "XDB Reference Data DB Name", "Value": "UNUSED" }, { "Name": "Marketing Automation DB Name", "Value": "UNUSED" }, { "Name": "Processing Pools DB Name", "Value": "UNUSED" }, { "Name": "Processing Tasks DB Name", "Value": "UNUSED" }, { "Name": "EXM Master DB Name", "Value": "UNUSED" }, { "Name": "Messaging DB Name", "Value": "UNUSED" }, { "Name": "Reporting DB User Name", "Value": "UNUSED" }, { "Name": "Reporting DB User Password", "Value": "UNUSED" }, { "Name": "XDB Reference Data DB User Name", "Value": "UNUSED" }, { "Name": "XDB Reference Data DB User Password", "Value": "UNUSED" }, { "Name": "EXM Master DB User Name", "Value": "UNUSED" }, { "Name": "EXM Master DB User Password", "Value": "UNUSED" }, { "Name": "Messaging DB User Name", "Value": "UNUSED" }, { "Name": "Messaging DB User Password", "Value": "UNUSED" }, { "Name": "Marketing Automation DB User Name", "Value": "UNUSED" }, { "Name": "Marketing Automation DB User Password", "Value": "UNUSED" }, { "Name": "Processing Pools DB User Name", "Value": "UNUSED" }, { "Name": "Processing Pools DB User Password", "Value": "UNUSED" }, { "Name": "Processing Tasks DB User Name", "Value": "UNUSED" }, { "Name": "Processing Tasks DB User Password", "Value": "UNUSED" }, { "Name": "XConnect Collection", "Value": "UNUSED" }, { "Name": "Xdb Reference Data Client", "Value": "UNUSED" }, { "Name": "XDB MA Reporting Client", "Value": "UNUSED" }, { "Name": "XDB MA Ops Client", "Value": "UNUSED" }, { "Name": "XConnect Server Certificate Validation Thumbprint", "Value": "UNUSED" }, { "Name": "EXM EDS Provider", "Value": "UNUSED" }, { "Name": "EXM Cryptographic Key", "Value": "UNUSED" }, { "Name": "EXM Authentication Key", "Value": "UNUSED" } ] } } }, "CreateBindingsWithDevelopmentThumprint": { "Type": "AddWebFeatureSSL", "Params": { "HostName": "[parameter('SiteName')]", "OutputDirectory": "[variable('Site.DataFolder')]" }, "Skip": "[parameter('SSLCert')]" }, "DisableXP": { "Type": "SetXml", "Params": [ { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/Sitecore/EmailExperience/Sitecore.EmailExperience.Core.config')]", "Xpath": "/configuration/sitecore/settings/setting[@name='EXM.Enabled']", "Attributes": { "value": "false" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/Sitecore/Marketing.xDB/Sitecore.Xdb.config')]", "Xpath": "/configuration/sitecore/settings/setting[@name='Xdb.Enabled']", "Attributes": { "value": "false" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'web.config')]", "Xpath": "/configuration/appSettings/add[@key='exmEnabled:define']", "Attributes": { "value": "no" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'web.config')]", "Xpath": "/configuration/system.webServer/modules/add[@name='MediaRequestSessionModule']", "Attributes": { "type": "Sitecore.Analytics.Media.MediaRequestSessionModule" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='messaging']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xconnect.collection']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xconnect.collection.certificate']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.referencedata']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.referencedata.client']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.referencedata.client.certificate']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.processing.pools']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='reporting']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.processing.tasks']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.marketingautomation']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.marketingautomation.reporting.client']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.marketingautomation.reporting.client.certificate']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.marketingautomation.operations.client']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='xdb.marketingautomation.operations.client.certificate']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='exm.master']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='EXM.CryptographicKey']", "Attributes": { "connectionString": "" } }, { "FilePath": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/connectionstrings.config')]", "Xpath": "/connectionStrings/add[@name='EXM.AuthenticationKey']", "Attributes": { "connectionString": "" } } ] }, "RemoveMarketingAutomation": { "Type": "Command", "Params": { "Path": "Remove-Item", "Arguments": "[joinpath(variable('Site.PhysicalPath'), 'App_Config/Sitecore/Marketing.Automation.ActivityDescriptors.Client/Sitecore.Marketing.Automation.ActivityDescriptors.Client.config')]" } }, "SetLicense": { "Type": "Copy", "Params": { "Source": "[resolvepath(parameter('LicenseFile'))]", "Destination": "[variable('Site.DataFolder')]" } }, "StartAppPool": { "Type": "ManageAppPool", "Params": { "Name": "[parameter('SiteName')]", "Action": "Start" } }, "StartWebsite": { "Type": "ManageWebsite", "Params": { "Name": "[parameter('SiteName')]", "Action": "Start" } }, "UpdateSolrSchema": { "Type": "SitecoreUrl", "Params": { "SitecoreInstanceRoot": "[concat('https://', parameter('SiteName'))]", "SitecoreActionPath": "sitecore/admin/PopulateManagedSchema.aspx?indexes=all", "UserName": "admin", "Password": "[parameter('SitecoreAdminPassword')]" } } } } |