Content Testing indexes are not found after deploying a solution through the Azure Marketplace


The sitecore_testing_index and sitecore_suggested_test_index are not found after deploying a solution using the Azure Marketplace with Solr search provider. The issue happens due to incorrect core names of the current indexes. Other indexes use a dynamically defined name $(id), but those two indexes have it set explicitly, and to a non-standard value. The following error message might appear in the log:

ERROR Unable to connect to [], Core: [Sitecore-sitecore_testing_index]
Exception: SolrNet.Exceptions.SolrConnectionException
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 404 Not Found</title>


To resolve the issue, change the explicitly defined "core" names to dynamic ones as follows: