1. Installing SXA with SIF

XM single deployment

Required artifacts:

  • Sitecore Experience Accelerator XM scwdp package
  • Sitecore PowerShell Extentions scwdp package

To deploy SXA to an XM single environment, you can use the SXA-SingleDeveloper-XM0.json configuration file. The SIF configuration deploys Sitecore PowerShell Extensions, creates the appropriate Solr cores for the SXA search indexes, and deploys a SXA scdwp package.

The following is an example script:

# The Prefix used on SOLR, Website and Database instances.
$prefix = "XM0"
# The Password for the Sitecore Admin User
$SitecoreAdminPassword = "b"
# The root folder with the license file and WDP files.
$SCInstallRoot = "C:\ResourceFiles"
# The URL of the Solr Server
$SolrUrl = "https://localhost:8983/solr"
# The Folder that Solr has been installed in.
$SolrRoot = "C:\Solr-10.0.0"
# The Name of the Solr Service.
$SolrService = "Solr-10.0.0"
# The admin username for the Solr instance.
$SolrAdminUserName = "admin"
# The admin password for the Solr instance.
$SolrAdminPassword = ""
# The DNS name or IP of the SQL Instance.
$SqlServer = "localhost"
# A SQL user with sysadmin privileges.
$SqlAdminUser = "sa"
# The password for $SQLAdminUser.
$SqlAdminPassword = "12345"
# The name for the Sitecore Content Delivery server.
$Sitename = "$prefix.sc"
$SPEPackage = (Get-ChildItem "$SCInstallRoot\Sitecore.PowerShell.Extensions*.scwdp.zip").FullName
$SXAPackage = (Get-ChildItem "$SCInstallRoot\Sitecore Experience Accelerator XM*.scwdp.zip").FullName
# Install Sitecore Powershell and Experience Accelerator packages
$sitecoreParams = @{
    Path                      = "$SCInstallRoot\SXA-SingleDeveloper-XM0.json"
    SPEPackage                = $SPEPackage
    SXAPackage                = $SXAPackage
    Prefix                    = $prefix
    SitecoreAdminPassword     = $SitecoreAdminPassword
    SqlServer                 = $SqlServer
    SqlAdminUser              = $SqlAdminUser
    SqlAdminPassword          = $SqlAdminPassword
    SolrUrl                   = $SolrUrl
    SolrAdminUserName         = $SolrAdminUserName
    SolrAdminPassword         = $SolrAdminPassword
    SolrRoot                  = $SolrRoot
    SolrService               = $SolrService
    Sitename                  = $Sitename
}
Push-Location $SCInstallRoot
Install-SitecoreConfiguration @sitecoreParams -verbose *>&1 | Tee-Object SXA-SingleDeveloper.log
Pop-Location
If you have suggestions for improving this article, let us know!