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

$ErrorActionPreference = "Stop"

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

$prefix = $SAFConfiguration.prefix
$solrService = $SAFConfiguration.search.solr.install.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."