Pipelines/Steps/Install/OnPrem/Sitecore/XP/Solr/9.1/Configure-SolrXConnect.ps1

$ErrorActionPreference = "Stop"

Write-Output "Add xConnect Solr cores started..."

$prefix = $SAFConfiguration.prefix
$solrService = $SAFConfiguration.search.solr.serviceName
$sifConfiguration = GetSIFConfiguration -Name "xconnect-solr.json" -ContextPath "$PSScriptRoot"

$solrParams = @{
    Path        = $sifConfiguration
    SolrUrl     = $SAFSolrServiceURL
    SolrRoot    = $SAFSolrServiceDir
    SolrService = $solrService
    CorePrefix  = $prefix
}
Install-SitecoreConfiguration @solrParams

Write-Output "Add xConnect Solr cores done."