Thanks for the suggestions. Seems like the only difference between my configuration and the one you suggested is that I should set the Search URL to "http://somethingthatalreadyhasbeencreated.domain.com/search". Maybe I'm missing something, but if I'm running this script, nothing has been created yet. The script is supposed to create it, right? What am I supposed to put into the configuration of the first web app that gets created? Which seems to be My Site Host.
Here are the modifications I made based on what I understood from your response. Please correct me if I'm not getting it.
Here are the modifications I made based on what I understood from your response. Please correct me if I'm not getting it.
<WebApplications AddURLsToHOSTS="true">
<WebApplication type="MySiteHost" name="MySite Host" applicationPool="MySites Application Pool" applicationPoolAccount="domain\sp2013webapp1" url="http://mysites.domain.com" port="80" UseHostHeader="true" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="Content_MySites" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
<Database>
<DBServer />
<DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
</Database>
<ManagedPaths>
<ManagedPath relativeUrl="personal" explicit="false" />
</ManagedPaths>
<SiteCollections>
<SiteCollection siteUrl="mysites.domain.com" HostNamedSiteCollection="false" Owner="domain\joe.shmoe-admin" Name="My Site Host" Description="My Site Host" SearchUrl="http://connect.domain.com/search" CustomTemplate="false" Template="SPSMSITEHOST#0" LCID="1033" Locale="en-us" Time24="false" />
</SiteCollections>
</WebApplication>
<WebApplication type="Other" name="Connect" applicationPool="Connect Application Pool" applicationPoolAccount="domain\sp2013webapp1" url="http://connect.domain.com" port="80" UseHostHeader="true" AddURLToLocalIntranetZone="true" GrantCurrentUserFullControl="true" databaseName="WSS_Content_Connect" useClaims="true" useBasicAuthentication="false" useOnlineWebPartCatalog="false">
<Database>
<DBServer />
<DBAlias Create="false" DBInstance="SERVER\INSTANCE" DBPort="" />
</Database>
<ManagedPaths>
<ManagedPath relativeUrl="sites" explicit="false" />
</ManagedPaths>
<SiteCollections>
<SiteCollection siteUrl="http://connect.domain.com" HostNamedSiteCollection="true" Owner="domain\joe.shmoe-admin" Name="Connect" Description="Top Level Site Collection" SearchUrl="http://connect.domain.com/search" CustomTemplate="false" Template="STS#0" LCID="1033" Locale="en-us" Time24="false" />
</SiteCollections>
</WebApplication>
</WebApplications>
I still get the same error.