SIF/1010/Platform/sitecore-XP1-cm.json

{
    "Parameters": {
        "Package": {
            "Type": "string",
            "Description": "The path to the Web Deploy package to deploy.",
            "DefaultValue": ""
        },
        "LicenseFile": {
            "Type": "string",
            "Description": "The path to the Sitecore license file.",
            "DefaultValue": ".\\License.xml"
        },
        "SqlDbPrefix": {
            "Type": "string",
            "Description": "The prefix used for all Sql databases.",
            "DefaultValue": ""
        },
        "SolrCorePrefix": {
            "Type": "string",
            "Description": "The prefix used for all Solr cores.",
            "DefaultValue": ""
        },
        "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": ""
        },
        "XConnectCert": {
            "Type": "string",
            "Description": "The certificate to use for encryption. Provide the name or the thumbprint.",
            "DefaultValue": ""
        },
        "SiteName": {
            "Type": "string",
            "DefaultValue": "SitecoreCM",
            "Description": "The name of the site to be deployed."
        },
        "SiteRoot": {
            "Type": "String",
            "Description": "Root folder to install the site to. If left on the default [systemdrive]:\\inetpub\\wwwroot will be used.",
            "DefaultValue": ""
        },
        "SitecoreAdminPassword": {
            "Type": "string",
            "DefaultValue": "",
            "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": "SIF-Default",
            "Description": "The Sql password for the Core connection string in Sitecore."
        },
        "SqlSecurityUser": {
            "Type": "string",
            "DefaultValue": "securityuser",
            "Description": "The user to create and use in Security connection string."
        },
        "SqlSecurityPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "Description": "The Sql password for the Security connection string in Sitecore."
        },
        "SqlMasterUser": {
            "Type": "string",
            "DefaultValue": "masteruser",
            "Description": "The user to create and use in Master connection string."
        },
        "SqlMasterPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "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": "SIF-Default",
            "Description": "The Sql password for the Web connection string in Sitecore."
        },
        "SqlReportingUser": {
            "Type": "string",
            "DefaultValue": "reportinguser",
            "Description": "The user to create and use in Reporting connection string."
        },
        "SqlReportingPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "Description": "The Sql password for the Reporting connection string in Sitecore."
        },
        "SqlReferenceDataUser": {
            "Type": "string",
            "DefaultValue": "referencedatauser",
            "Description": "The user to create and use in Reference Data connection string."
        },
        "SqlReferenceDataPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "Description": "The Sql password for the Reference Data 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": "SIF-Default",
            "Description": "The Sql password for the Experience Forms connection string in Sitecore."
        },
        "SqlExmMasterUser": {
            "Type": "string",
            "DefaultValue": "exmmasteruser",
            "Description": "The Sql user for the EXM Master connection string in Sitecore."
        },
        "SqlExmMasterPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "Description": "The Sql password for the EXM Master connection string in Sitecore."
        },
        "SqlMessagingUser": {
            "Type": "string",
            "DefaultValue": "messaginguser",
            "Description": "The Sql user for the Messaging connection string in Sitecore."
        },
        "SqlMessagingPassword": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "Description": "The Sql password for the Messaging connection string in Sitecore."
        },
        "SqlServer": {
            "Type": "string",
            "DefaultValue": ".\\SQL2016",
            "Description": "The Sql Server where databases will be installed."
        },
        "ExmEdsProvider": {
            "Type": "string",
            "DefaultValue": "CustomSMTP",
            "Description": "The default EDS provider to be used."
        },
        "SolrUrl": {
            "Type": "string",
            "DefaultValue": "https://localhost:8983/solr",
            "Description": "The Solr instance to use."
        },
        "ProcessingService": {
            "Type": "string",
            "DefaultValue": "https://SitecoreProcessing",
            "Description": "The url for the Processing Service."
        },
        "ReportingServiceApiKey": {
            "Type": "string",
            "DefaultValue": "00112233445566778899AABBCCDDEEFF",
            "Description": "The api key to use with the Processing Service server must be at least 32 characters long. e.g 00112233445566778899AABBCCDDEEFF"
        },
        "XConnectCollectionService": {
            "Type": "string",
            "DefaultValue": "https://XConnectCollection",
            "Description": "The url for the XConnect Collection Service."
        },
        "XConnectCollectionSearchService": {
            "Type": "string",
            "DefaultValue": "https://XConnectCollectionSearch",
            "Description": "The url for the XConnect Collection Search Service."
        },
        "XConnectReferenceDataService": {
            "Type": "string",
            "DefaultValue": "https://XConnectReferenceData",
            "Description": "The url for the XConnect Reference Data Service."
        },
        "MarketingAutomationOperationsService": {
            "Type": "string",
            "DefaultValue": "http://XConnectMarketingAutomation",
            "Description": "The url for the XConnect Marketing Automation Service."
        },
        "MarketingAutomationReportingService": {
            "Type": "string",
            "DefaultValue": "http://XConnectMarketingAutomationReporting",
            "Description": "The url for the XConnect Marketing Automation Reporting Service."
        },
        "CortexReportingService": {
            "Type": "string",
            "DefaultValue": "https://CortexReporting",
            "Description": "The url for the Cortex Reporting Service."
        },
        "EXMCryptographicKey": {
            "Type": "string",
            "DefaultValue": "0x0123456789012345678901234567890123456789012345678901234678901234",
            "Description": "64 digits hexadecimal EXM Cryptographic Key. Takes the form 0x0000000000000000000000000000000000000000000000000000000000000000"
        },
        "EXMAuthenticationKey": {
            "Type": "string",
            "DefaultValue": "0x0123456789012345678901234567890123456789012345678901234678901234",
            "Description": "64 digits hexadecimal EXM Authentication Key. Takes the form 0x0000000000000000000000000000000000000000000000000000000000000000"
        },
        "SitecoreIdentityAuthority": {
            "Type": "string",
            "DefaultValue": "https://SitecoreIdentityServerHost",
            "Description": "IdentityServer provider URI."
        },
        "SitecoreIdentitySecret": {
            "Type": "string",
            "DefaultValue": "",
            "Description": "Client secret for Sitecore Identity server."
        },
        "TelerikEncryptionKey": {
            "Type": "string",
            "DefaultValue": "SIF-Default",
            "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."
        },
        "HostMappingName": {
            "Type": "string",
            "Reference": "SiteName",
            "Description": "The host mapping name of the site."
        },
        "DnsName": {
            "Type": "string",
            "Reference": "SiteName",
            "Description": "The dns name of the site."
        },
        "SkipDatabaseInstallation": {
            "Type": "bool",
            "DefaultValue": false,
            "Description": "Skip database installation."
        },
        "PackagesTempLocation": {
            "Type": "String",
            "Description": "Alternative location to save WDP packages. If left on the default $Env:Temp will be used.",
            "DefaultValue": "",
            "Validate": "[TestPath(variable('Package.Download.Location'))]"
        },
        "DownloadLocations": {
            "Type": "String",
            "Description": "File with URI and SHA256 hashes of dynamically downloadable WDPs.",
            "DefaultValue": ".\\downloads.json"
        }
    },
    "Variables": {
        "Sql.Server.Password.Secure": "[ConvertToSecureString(String:parameter('SqlAdminPassword'),AsPlainText:true,Force:true)]",
 
        "Skip.dbDacFx": "[if(parameter('SkipDatabaseInstallation'),'dbDacFx','null')]",
        "Skip.dbFullSql": "[if(parameter('SkipDatabaseInstallation'),'dbFullSql','null')]",
 
        "Sql.Database.Core.Name": "[concat(parameter('SqlDbPrefix'), '_Core')]",
        "Sql.Database.Security.Name": "[concat(parameter('SqlDbPrefix'), '_Core')]",
        "Sql.Database.Master.Name": "[concat(parameter('SqlDbPrefix'), '_Master')]",
        "Sql.Database.Web.Name": "[concat(parameter('SqlDbPrefix'), '_Web')]",
        "Sql.Database.Reporting.Name": "[concat(parameter('SqlDbPrefix'), '_Reporting')]",
        "Sql.Database.ReferenceData.Name": "[concat(parameter('SqlDbPrefix'), '_ReferenceData')]",
        "Sql.Database.Forms.Name": "[concat(parameter('SqlDbPrefix'), '_ExperienceForms')]",
        "Sql.Database.EXMMaster.Name": "[concat(parameter('SqlDbPrefix'), '_EXM.Master')]",
        "Sql.Database.Messaging.Name": "[concat(parameter('SqlDbPrefix'), '_Messaging')]",
 
        "Sql.Database.Core.Password": "[parameter('SqlCorePassword'))]",
        "Sql.Database.Security.Password": "[parameter('SqlSecurityPassword'))]",
        "Sql.Database.EXMMaster.Password": "[parameter('SqlExmMasterPassword'))]",
        "Sql.Database.Forms.Password": "[parameter('SqlFormsPassword'))]",
        "Sql.Database.Master.Password": "[parameter('SqlMasterPassword'))]",
        "Sql.Database.Web.Password": "[parameter('SqlWebPassword'))]",
        "Sql.Database.Messaging.Password": "[parameter('SqlMessagingPassword')]",
        "Sql.Database.ReferenceData.Password": "[parameter('SqlReferenceDataPassword')]",
        "Sql.Database.Reporting.Password": "[parameter('SqlReportingPassword')]",
 
        "Solr.Core.Core.Name": "[concat(parameter('SolrCorePrefix'), '_core_index')]",
        "Solr.Core.Master.Name": "[concat(parameter('SolrCorePrefix'), '_master_index')]",
        "Solr.Core.Web.Name": "[concat(parameter('SolrCorePrefix'), '_web_index')]",
        "Solr.Core.MarketingDefinitions.Master.Name": "[concat(parameter('SolrCorePrefix'), '_marketingdefinitions_master')]",
        "Solr.Core.MarketingDefinitions.Web.Name": "[concat(parameter('SolrCorePrefix'), '_marketingdefinitions_web')]",
        "Solr.Core.MarketingAssets.Master.Name": "[concat(parameter('SolrCorePrefix'), '_marketing_asset_index_master')]",
        "Solr.Core.MarketingAssets.Web.Name": "[concat(parameter('SolrCorePrefix'), '_marketing_asset_index_web')]",
        "Solr.Core.Testing.Name": "[concat(parameter('SolrCorePrefix'), '_testing_index')]",
        "Solr.Core.Suggested.Name": "[concat(parameter('SolrCorePrefix'), '_suggested_test_index')]",
        "Solr.Core.FXM.Master.Name": "[concat(parameter('SolrCorePrefix'), '_fxm_master_index')]",
        "Solr.Core.FXM.Web.Name": "[concat(parameter('SolrCorePrefix'), '_fxm_web_index')]",
        "Solr.Core.Personalization.Name": "[concat(parameter('SolrCorePrefix'), '_personalization_index')]",
 
        "Certificates.Store": "Cert:\\Localmachine\\My",
        "Certificates.Site.Thumbprint": "[GetCertificateThumbprint(parameter('SSLCert'), variable('Certificates.Store'))]",
        "Certificates.XConnect.Thumbprint": "[GetCertificateThumbprint(parameter('XConnectCert'), variable('Certificates.Store'))]",
        "Certificates.XConnect.Path": "[joinpath(variable('Certificates.Store'), variable('Certificates.XConnect.Thumbprint'))]",
 
        "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')]",
 
        "Sitecore.Admin.Password": "[if(variable('Sitecore.Admin.Password.Test'),variable('Sitecore.Admin.Password.Generate'),parameter('SitecoreAdminPassword'))]",
        "Sitecore.Admin.Password.Test": "[equal(parameter('SitecoreAdminPassword'),'')]",
        "Sitecore.Admin.Password.Generate": "[randomstring(Length:20,DisAllowSpecial:True,EnforceComplexity:True)]",
 
        "IdentityServer.Client.Secret": "[parameter('SitecoreIdentitySecret')]",
        "ReportingService.ApiKey": "[parameter('ReportingServiceApiKey'))]",
 
        "EXM.CryptographicKey": "[parameter('EXMCryptographicKey'))]",
        "EXM.AuthenticationKey": "[parameter('EXMAuthenticationKey'))]",
 
        "Telerik.EncryptionKey": "[if(variable('Telerik.EncryptionKey.Test'),variable('Telerik.EncryptionKey.Generate'),parameter('TelerikEncryptionKey'))]",
        "Telerik.EncryptionKey.Test": "[equal(parameter('TelerikEncryptionKey'),'SIF-Default')]",
        "Telerik.EncryptionKey.Generate": "[randomstring(Length:256,DisAllowSpecial:True)]",
 
        "Packages.DownloadLocations.File": "[ReadJson(parameter('DownloadLocations'))]",
        "Packages.DownloadLocations.File.Test": "[TestPath(Path:Parameter('DownloadLocations'))]",
 
        "Package.Download.Identifier": "sitecore-XP1-cm.json",
        "Package.Download.Location": "[if(variable('Package.Download.Location.Test'),Environment('Temp'),parameter('PackagesTempLocation'))]",
        "Package.Download.Location.Test": "[equal(parameter('PackagesTempLocation'),'')]",
        "Package.Download.Object": "[SelectObject(InputObject:variable('Packages.DownloadLocations.File'),ExpandProperty:variable('Package.Download.Identifier'))]",
        "Package.Download.Uri": "[SelectObject(InputObject:variable('Package.Download.Object'),ExpandProperty:'Uri')]",
        "Package.Download.Hash": "[SelectObject(InputObject:variable('Package.Download.Object'),ExpandProperty:'Hash')]",
        "Package.Download.Path": "[JoinPath(variable('Package.Download.Location'),variable('Package.Download.Filename'))]",
        "Package.Download.Document": "[SplitPath(Path:variable('Package.Download.Uri'),Leaf:true)]",
        "Package.Download.Filename": "[Split(String:variable('Package.Download.Document'),Characters:'?')]",
 
        "Package": "[if(parameter('Package'),parameter('Package'),variable('Package.Download.Path'))]",
        "Package.Available": "[or(variable('Package.Provided'),not(variable('Packages.DownloadLocations.File.Test')))]",
        "Package.Provided": "[if(parameter('Package'),parameter('Package'),'')]"
    },
    "Register": {
        "Tasks": {
            "RemoveItem": "Remove-Item",
            "WriteInformation": "Write-Information"
        },
        "ConfigFunction": {
            "ConvertToSecureString": "ConvertTo-SecureString",
            "TestPath": "Test-Path",
            "SelectObject": "Select-Object",
            "SplitPath": "Split-Path",
            "GetVariable": "Get-Variable"
        }
    },
    "Tasks": {
        "DownloadWDP": {
            "Description": "Download the WDP and verifies it against the stored hash.",
            "Type": "DownloadFile",
            "Params": {
                "SourceUri": "[variable('Package.Download.URI')]",
                "DestinationPath": "[variable('Package.Download.Path')]",
                "Hash": "[variable('Package.Download.Hash')]"
            },
            "Skip": "[variable('Package.Available')]"
        },
        "CreatePaths": {
            "Description": "Ensure the destination path for the site exists.",
            "Type": "EnsurePath",
            "Params": {
                "Exists": [
                    "[variable('Site.Path')]"
                ]
            }
        },
        "CreateAppPool": {
            "Description": "Creates or updates the app pool.",
            "Type": "AppPool",
            "Params": {
                "Name": "[parameter('SiteName')]",
                "Properties": {
                    "ProcessModel": {
                        "identityType": "ApplicationPoolIdentity"
                    }
                }
            }
        },
        "CreateWebsite": {
            "Description": "Creates or updates the IIS website instance.",
            "Type": "Website",
            "Params": {
                "Name": "[parameter('SiteName')]",
                "ApplicationPool": "[parameter('SiteName')]",
                "PhysicalPath": "[variable('Site.Path')]"
            }
        },
        "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"
            }
        },
        "RemoveDefaultBinding": {
            "Description": "Removes the default *:80 web binding.",
            "Type": "WebBinding",
            "Params": {
                "SiteName": "[parameter('SiteName')]",
                "Remove": [
                    {
                        "Port": "80",
                        "IPAddress": "*"
                    }
                ]
            }
        },
        "CreateBindingsWithThumbprint": {
            "Description": "Configures the site bindings for the website.",
            "Type": "WebBinding",
            "Params": {
                "SiteName": "[parameter('SiteName')]",
                "Add": [
                    {
                        "HostHeader": "[parameter('DnsName')]",
                        "Protocol": "https",
                        "SSLFlags": 1,
                        "Thumbprint": "[variable('Certificates.Site.Thumbprint')]"
                    }
                ]
            },
            "Skip": "[not(parameter('SSLCert'))]"
        },
        "CreateHostHeader": {
            "Description": "Sets a host header for the website.",
            "Type": "HostHeader",
            "Params": {
                "HostName": "[parameter('HostMappingName')]"
            },
            "Skip": "[not(parameter('HostMappingName'))]"
        },
        "SetPermissions": {
            "Description": "Sets permissions for the app pool user.",
            "Type": "FilePermissions",
            "Params": {
                "Path": "[variable('Site.Path')]",
                "Rights": [
                    {
                        "User": "[concat('IIS AppPool\\', parameter('SiteName'))]",
                        "FileSystemRights": "FullControl",
                        "InheritanceFlags": [
                            "ContainerInherit",
                            "ObjectInherit"
                        ]
                    }
                ]
            }
        },
        "SetCertStorePermissions": {
            "Description": "Set permissions for the services to access the client certificate.",
            "Type": "FilePermissions",
            "Params": {
                "Path": "[ResolveCertificatePath(variable('Certificates.XConnect.Path'))]",
                "Rights": [
                    {
                        "User": "[concat('IIS AppPool\\', parameter('SiteName'))]",
                        "FileSystemRights": [
                            "Read"
                        ],
                        "InheritanceFlags": [
                            "None"
                        ]
                    }
                ]
            }
        },
        "InstallWDP": {
            "Description": "Syncs the web deploy package with the website.",
            "Type": "WebDeploy",
            "Params": {
                "Verb": "Sync",
                "Arguments": {
                    "Source": {
                        "Package": "[resolvepath(variable('Package'))]"
                    },
                    "Dest": "Auto",
                    "SetParam": [
                        {
                            "Name": "Application Path",
                            "Value": "[parameter('SiteName')]"
                        },
                        {
                            "Name": "Database Server Name",
                            "Value": "[parameter('SqlServer')]"
                        },
                        {
                            "Name": "Sitecore Admin New Password",
                            "Value": "[variable('Sitecore.Admin.Password')]"
                        },
                        {
                            "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')]"
                        },
                        {
                            "Name": "Security DB Name",
                            "Value": "[variable('Sql.Database.Security.Name')]"
                        },
                        {
                            "Name": "Master DB Name",
                            "Value": "[variable('Sql.Database.Master.Name')]"
                        },
                        {
                            "Name": "Web DB Name",
                            "Value": "[variable('Sql.Database.Web.Name')]"
                        },
                        {
                            "Name": "Reporting DB Name",
                            "Value": "[variable('Sql.Database.Reporting.Name')]"
                        },
                        {
                            "Name": "XDB Reference Data DB Name",
                            "Value": "[variable('Sql.Database.ReferenceData.Name')]"
                        },
                        {
                            "Name": "Experience Forms DB Name",
                            "Value": "[variable('Sql.Database.Forms.Name')]"
                        },
                        {
                            "Name": "EXM Master DB Name",
                            "Value": "[variable('Sql.Database.EXMMaster.Name')]"
                        },
                        {
                            "Name": "Messaging DB Name",
                            "Value": "[variable('Sql.Database.Messaging.Name')]"
                        },
                        {
                            "Name": "Core DB User Name",
                            "Value": "[parameter('SqlCoreUser')]"
                        },
                        {
                            "Name": "Core DB User Password",
                            "Value": "[variable('Sql.Database.Core.Password')]"
                        },
                        {
                            "Name": "Security DB User Name",
                            "Value": "[parameter('SqlSecurityUser')]"
                        },
                        {
                            "Name": "Security DB User Password",
                            "Value": "[variable('Sql.Database.Security.Password')]"
                        },
                        {
                            "Name": "Master DB User Name",
                            "Value": "[parameter('SqlMasterUser')]"
                        },
                        {
                            "Name": "Master DB User Password",
                            "Value": "[variable('Sql.Database.Master.Password')]"
                        },
                        {
                            "Name": "Web DB User Name",
                            "Value": "[parameter('SqlWebUser')]"
                        },
                        {
                            "Name": "Web DB User Password",
                            "Value": "[variable('Sql.Database.Web.Password')]"
                        },
                        {
                            "Name": "Reporting DB User Name",
                            "Value": "[parameter('SqlReportingUser')]"
                        },
                        {
                            "Name": "Reporting DB User Password",
                            "Value": "[variable('Sql.Database.Reporting.Password')]"
                        },
                        {
                            "Name": "XDB Reference Data DB User Name",
                            "Value": "[parameter('SqlReferenceDataUser')]"
                        },
                        {
                            "Name": "XDB Reference Data DB User Password",
                            "Value": "[variable('Sql.Database.ReferenceData.Password')]"
                        },
                        {
                            "Name": "Experience Forms DB User Name",
                            "Value": "[parameter('SqlFormsUser')]"
                        },
                        {
                            "Name": "Experience Forms DB User Password",
                            "Value": "[variable('Sql.Database.Forms.Password')]"
                        },
                        {
                            "Name": "EXM Master DB User Name",
                            "Value": "[parameter('SqlExmMasterUser')]"
                        },
                        {
                            "Name": "EXM Master DB User Password",
                            "Value": "[variable('Sql.Database.EXMMaster.Password')]"
                        },
                        {
                            "Name": "Messaging DB User Name",
                            "Value": "[parameter('SqlMessagingUser')]"
                        },
                        {
                            "Name": "Messaging DB User Password",
                            "Value": "[variable('Sql.Database.Messaging.Password')]"
                        },
                        {
                            "Name": "XConnect Collection",
                            "Value": "[parameter('XConnectCollectionService')]"
                        },
                        {
                            "Name": "XConnect Search",
                            "Value": "[parameter('XConnectCollectionSearchService')]"
                        },
                        {
                            "Name": "Xdb Reference Data Client",
                            "Value": "[parameter('XConnectReferenceDataService')]"
                        },
                        {
                            "Name": "XDB MA Reporting Client",
                            "Value": "[parameter('MarketingAutomationReportingService')]"
                        },
                        {
                            "Name": "XDB MA Ops Client",
                            "Value": "[parameter('MarketingAutomationOperationsService')]"
                        },
                        {
                            "Name": "Cortex Reporting Client",
                            "Value": "[parameter('CortexReportingService')]"
                        },
                        {
                            "Name": "XConnect Server Certificate Validation Thumbprint",
                            "Value": "[variable('Certificates.XConnect.Thumbprint')]"
                        },
                        {
                            "Name": "Processing Site URL",
                            "Value": "[parameter('ProcessingService')]"
                        },
                        {
                            "Name": "Reporting API Key",
                            "Value": "[variable('ReportingService.ApiKey')]"
                        },
                        {
                            "Name": "SOLR Connection String",
                            "Value": "[parameter('SolrUrl')]"
                        },
                        {
                            "Name": "Solr Core Index Name",
                            "Value": "[variable('Solr.Core.Core.Name')]"
                        },
                        {
                            "Name": "Solr Master Index Name",
                            "Value": "[variable('Solr.Core.Master.Name')]"
                        },
                        {
                            "Name": "Solr Web Index Name",
                            "Value": "[variable('Solr.Core.Web.Name')]"
                        },
                        {
                            "Name": "Solr Marketing Definitions Master Index Name",
                            "Value": "[variable('Solr.Core.MarketingDefinitions.Master.Name')]"
                        },
                        {
                            "Name": "Solr Marketing Definitions Web Index Name",
                            "Value": "[variable('Solr.Core.MarketingDefinitions.Web.Name')]"
                        },
                        {
                            "Name": "Solr Marketing Asset Master Index Name",
                            "Value": "[variable('Solr.Core.MarketingAssets.Master.Name')]"
                        },
                        {
                            "Name": "Solr Marketing Asset Web Index Name",
                            "Value": "[variable('Solr.Core.MarketingAssets.Web.Name')]"
                        },
                        {
                            "Name": "Solr Testing Index Name",
                            "Value": "[variable('Solr.Core.Testing.Name')]"
                        },
                        {
                            "Name": "Solr Suggested Index Name",
                            "Value": "[variable('Solr.Core.Suggested.Name')]"
                        },
                        {
                            "Name": "Solr FXM Master Index Name",
                            "Value": "[variable('Solr.Core.FXM.Master.Name')]"
                        },
                        {
                            "Name": "Solr FXM Web Index Name",
                            "Value": "[variable('Solr.Core.FXM.Web.Name')]"
                        },
                        {
                            "Name": "Solr Personalization Index Name",
                            "Value": "[variable('Solr.Core.Personalization.Name')]"
                        },
                        {
                            "Name": "Sitecore Identity Authority",
                            "Value": "[parameter('SitecoreIdentityAuthority')]"
                        },
                        {
                            "Name": "Sitecore Identity Secret",
                            "Value": "[variable('IdentityServer.Client.Secret')]"
                        },
                        {
                            "Name": "Telerik Encryption Key",
                            "Value": "[variable('Telerik.EncryptionKey')]"
                        },
                        {
                            "Name": "EXM Cryptographic Key",
                            "Value": "[variable('EXM.CryptographicKey')]"
                        },
                        {
                            "Name": "EXM Authentication Key",
                            "Value": "[variable('EXM.AuthenticationKey')]"
                        },
                        {
                            "Name": "EXM EDS Provider",
                            "Value": "[parameter('ExmEdsProvider')]"
                        }
                    ],
                    "Skip": [
                        {
                            "ObjectName": "[variable('Skip.dbDacFx')]"
                        },
                        {
                            "ObjectName": "[variable('Skip.dbFullSql')]"
                        }
                    ]
                }
            }
        },
        "CreateBindingsWithDevelopmentThumbprint": {
            "Description": "Creates a new thumbprint with a custom CA.",
            "Type": "AddWebFeatureSSL",
            "Params": {
                "SiteName": "[parameter('SiteName')]",
                "HostName": "[parameter('DnsName')]",
                "OutputDirectory": "[variable('Site.DataFolder')]"
            },
            "Skip": "[parameter('SSLCert')]"
        },
        "SetLicense": {
            "Description": "Copies the license file to the instance data folder.",
            "Type": "Copy",
            "Params": {
                "Source": "[resolvepath(parameter('LicenseFile'))]",
                "Destination": "[variable('Site.DataFolder')]"
            }
        },
        "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": {
            "Description": "Update the solr schemas.",
            "Type": "SitecoreUrl",
            "Params": {
                "SitecoreInstanceRoot": "[concat('https://', parameter('DnsName'))]",
                "SitecoreActionPath": "sitecore/admin/PopulateManagedSchema.aspx?indexes=all",
                "UserName": "admin",
                "Password": "[variable('Sitecore.Admin.Password')]"
            }
        },
        "DisplayPassword": {
            "Description": "Displays the admin password.",
            "Type": "WriteInformation",
            "Params": {
                "MessageData": "[concat('Sitecore Admin Password: ',variable('Sitecore.Admin.Password'))]",
                "InformationAction": "Continue"
            }
        }
    },
    "UninstallTasks": {
        "StopWebsite": {
            "Description": "Stops the website if it is running.",
            "Type": "ManageWebsite",
            "Params": {
                "Name": "[parameter('SiteName')]",
                "Action": "Stop",
                "ErrorAction": "SilentlyContinue"
            }
        },
        "StopAppPool": {
            "Description": "Stops the app pool if it is running.",
            "Type": "ManageAppPool",
            "Params": {
                "Name": "[parameter('SiteName')]",
                "Action": "Stop",
                "ErrorAction": "SilentlyContinue"
            }
        },
        "RemoveWebsite": {
            "Description": "Removes the IIS website.",
            "Type": "RemoveWebsite",
            "Params": {
                "Name": "[parameter('SiteName')]"
            }
        },
        "RemoveAppPool": {
            "Description": "Removes the IIS application pool.",
            "Type": "RemoveAppPool",
            "Params": {
                "Name": "[parameter('SiteName')]"
            }
        },
        "RemoveContent": {
            "Description": "Removes website content.",
            "Type": "RemoveItem",
            "Params": {
                "Path": "[variable('Site.Path')]",
                "Recurse": true,
                "ErrorAction": "SilentlyContinue"
            }
        },
        "RemoveHostHeader": {
            "Description": "Removes the website host name.",
            "Type": "HostHeader",
            "Params": {
                "HostName": "[parameter('SiteName')]",
                "Action": "Remove"
            }
        },
        "RemoveDatabases": {
            "Description": "Removes the databases.",
            "Type": "RemoveSQLDatabase",
            "Params": {
                "ServerName": "[parameter('SqlServer')]",
                "Username": "[parameter('SqlAdminUser')]",
                "Password": "[variable('Sql.Server.Password.Secure')]",
                "DatabaseName": [
                    "[variable('Sql.Database.Core.Name')]",
                    "[variable('Sql.Database.Master.Name')]",
                    "[variable('Sql.Database.Web.Name')]",
                    "[variable('Sql.Database.Forms.Name')]",
                    "[variable('Sql.Database.EXMMaster.Name')]"
                ]
            }
        }
    }
}