Pipelines/Steps/Install/OnPrem/Sitecore/XM/Solr/9.1/PreInstalled/Create-SolrSitecoreCoresViaHTTP.ps1

$ErrorActionPreference = "Stop"

Write-Output "Create Sitecore Solr cores via HTTP started..."

$cores = @("core_index", "master_index", "web_index", "marketingdefinitions_master", "marketingdefinitions_web", "marketing_asset_index_master", "marketing_asset_index_web", "testing_index", "suggested_test_index", "fxm_master_index", "fxm_web_index")

foreach ($core in $cores) {
    CreateNewSolrCoreViaHTTP -SolrUrl $SAFSolrServiceURL -CoreName "$($SAFConfiguration.prefix)_$($core)"
}

Write-Output "Create Sitecore Solr cores via HTTP done."