1. Installing SXA with SIF

XM deployment

Required artifacts:

  • Sitecore Experience Accelerator XM scwdp package
  • Sitecore Experience Accelerator XM CD scwdp package
  • Sitecore PowerShell Extensions scwdp package

To deply SXA to an XM environment, you can use the SXA-SingleDeveloper-XM1.json configuration file. The SIF configuration deploys SItecore PowerShell Extensions, creates the appropriate Solr cores for the SXA search indexes, and deploys SXA scdwp packages to the Content Management and Content Delivery environments.

The following is an example script:

# The Prefix used on SOLR, Website and Database instances.
$prefix = "XM1"
# 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 Management server.
$CMSitename = "$prefix.cm"
# The name for the Sitecore Content Delivery server.
$CDSiteName = "$prefix.cd"
$SPEPackage = (Get-ChildItem "$SCInstallRoot\Sitecore.PowerShell.Extensions*.scwdp.zip").FullName
$SXACMPackage = (Get-ChildItem "$SCInstallRoot\Sitecore Experience Accelerator XM*.scwdp.zip" -Exclude "*CD*").FullName
$SXACDPackage = (Get-ChildItem "$SCInstallRoot\Sitecore Experience Accelerator XM*.scwdp.zip" -Include "*CD*").FullName
# Install Sitecore Powershell and Experience Accelerator packages
$sitecoreParams = @{
    Path                      = "$SCInstallRoot\SXA-SingleDeveloper-XM1.json"
    SPEPackage                = $SPEPackage
    SXACMPackage              = $SXACMPackage
    SXACDPackage              = $SXACDPackage
    Prefix                    = $prefix
    SitecoreAdminPassword     = $SitecoreAdminPassword
    SqlServer                 = $SqlServer
    SqlAdminUser              = $SqlAdminUser
    SqlAdminPassword          = $SqlAdminPassword
    SolrUrl                   = $SolrUrl
    SolrAdminUserName         = $SolrAdminUserName
    SolrAdminPassword         = $SolrAdminPassword
    SolrRoot                  = $SolrRoot
    SolrService               = $SolrService
    SitecoreContentManagementSiteName                  = $CMSitename
    SitecoreContentDeliverySiteName                    = $CDSiteName
}
Push-Location $SCInstallRoot
Install-SitecoreConfiguration @sitecoreParams *>&1 | Tee-Object SXA-SingleDeveloper.log
Pop-Location
If you have suggestions for improving this article, let us know!