SIF/1010/SXA/sxa-XP1-CM.json
{
"Parameters": { "Package": { "Type": "string", "Description": "The path to the Web Deploy package to deploy.", "DefaultValue": "" }, "SqlDbPrefix": { "Type": "string", "Description": "The prefix used for all Sql databases.", "DefaultValue": "" }, "SolrCorePrefix": { "Type": "string", "Description": "The prefix used for all Solr cores.", "DefaultValue": "" }, "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." }, "SqlServer": { "Type": "string", "DefaultValue": ".\\SQLSERVER", "Description": "The Sql Server where databases will be installed." } }, "Variables": { "Sql.Database.Core.Name": "[concat(parameter('SqlDbPrefix'), '_Core')]", "Sql.Database.Master.Name": "[concat(parameter('SqlDbPrefix'), '_Master')]", "Sql.Database.Core.ConnectionString": "[SqlConnectionString(Server:parameter('SqlServer'),Database:variable('Sql.Database.Core.Name'),UserName:parameter('SqlAdminUser'),Password:parameter('SqlAdminPassword'))]", "Sql.Database.Master.ConnectionString": "[SqlConnectionString(Server:parameter('SqlServer'),Database:variable('Sql.Database.Master.Name'),UserName:parameter('SqlAdminUser'),Password:parameter('SqlAdminPassword'))]", "Solr.Core.Master.Name": "[concat(parameter('SolrCorePrefix'), '_sxa_master_index')]", "Solr.Core.Web.Name": "[concat(parameter('SolrCorePrefix'), '_sxa_web_index')]", "Site.Path": "[if(variable('Site.Path.Test'),variable('Site.Path.Default'),variable('Site.Path.Custom'))]", "Site.Path.Default": "[joinpath(environment('SystemDrive'), 'inetpub', 'wwwroot', parameter('SiteName'))]", "Site.Path.Custom": "[joinpath(parameter('SiteRoot'),parameter('SiteName'))]", "Site.Path.Test": "[equal(parameter('SiteRoot'),'')]", "Site.DataFolder": "[joinpath(variable('Site.Path'), 'App_Data')]" }, "Tasks": { "StopWebsite": { "Description": "Stops the website if it is running.", "Type": "ManageWebsite", "Params": { "Name": "[parameter('SiteName')]", "Action": "Stop" } }, "StopAppPool": { "Description": "Stops the app pool if it is running.", "Type": "ManageAppPool", "Params": { "Name": "[parameter('SiteName')]", "Action": "Stop" } }, "InstallWDP": { "Description": "Syncs the web deploy package with the website.", "Type": "WebDeploy", "Params": { "Verb": "Sync", "Arguments": { "Source": { "Package": "[resolvepath(parameter('Package'))]" }, "Dest": "Auto", "enableRule": "DoNotDeleteRule", "SetParam": [ { "Name": "Application Path", "Value": "[parameter('SiteName')]" }, { "Name": "Core Admin Connection String", "Value": "[variable('Sql.Database.Core.ConnectionString')]" }, { "Name": "Master Admin Connection String", "Value": "[variable('Sql.Database.Master.ConnectionString')]" }, { "Name": "Solr Master Index Name", "Value": "[variable('Solr.Core.Master.Name')]" }, { "Name": "Solr Web Index Name", "Value": "[variable('Solr.Core.Web.Name')]" } ] } } }, "TransformXmlDocuments": { "Type": "TransformXmlDoc", "Params": { "RootDirectoryPath": "[variable('Site.Path')]", "XdtDirectory": "[joinpath(variable('Site.DataFolder'), 'SxaXdt')]" } }, "StartAppPool": { "Description": "Starts the app pool.", "Type": "ManageAppPool", "Params": { "Name": "[parameter('SiteName')]", "Action": "Start" } }, "StartWebsite": { "Description": "Starts the website.", "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')]" } }, "CleanupDatabase": { "Type": "SitecoreUrl", "Params": { "SitecoreInstanceRoot": "[concat('https://', parameter('SiteName'))]", "SitecoreActionPath": "sitecore/admin/CleanupDatabase.aspx", "UserName": "admin", "Password": "[parameter('SitecoreAdminPassword')]" } } } } |