Last active
February 10, 2018 18:43
-
-
Save hishaamn/d618eb3c2482ab072370ad0ef482ed6f to your computer and use it in GitHub Desktop.
This is the script to install the Sitecore 9 instance with xConnect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Define Parameters | |
| $prefix = "local" | |
| $PSScriptRoot = "C:\resourcefile" | |
| $XConnectCollectionService = "$prefix.xconnect" | |
| $sitecoreSiteName = "$prefix.sitecore" | |
| $SolrUrl = "https://localhost:8989/solr" | |
| $SolrRoot = "C:\solr-6.6.1" | |
| $SolrService = "solr-6.6.1" | |
| $SqlServer = "(local)" | |
| $SqlAdminUser = "sa" | |
| $SqlAdminPassword = "qwerty1+" | |
| $SitecoreInstallationPath="c:\inetpub\wwwroot\Sitecore\$sitecoreSiteName" | |
| $XConnectInstallationPath="c:\inetpub\wwwroot\Sitecore\$XConnectCollectionService" | |
| # Install client certificate for xconnect | |
| $certParams = @{ | |
| Path = "$PSScriptRoot\xconnect-createcert.json" | |
| CertificateName = "$prefix.xconnect_client" | |
| } | |
| Install-SitecoreConfiguration @certParams -Verbose | |
| # Install solr cores for xdb | |
| $solrParams = @{ | |
| Path = "$PSScriptRoot\xconnect-solr.json" | |
| SolrUrl = $SolrUrl | |
| SolrRoot = $SolrRoot | |
| SolrService = $SolrService | |
| CorePrefix = $prefix | |
| } | |
| Install-SitecoreConfiguration @solrParams | |
| # Deploy xconnect instance | |
| $xconnectParams = @{ | |
| Path = "$PSScriptRoot\xconnect-xp0.json" | |
| Package = "$PSScriptRoot\Sitecore 9.0.1 rev. 171219 (OnPrem)_xp0xconnect.scwdp.zip" | |
| LicenseFile = "$PSScriptRoot\license.xml" | |
| Sitename = $XConnectCollectionService | |
| XConnectCert = $certParams.CertificateName | |
| InstallationPath = $XConnectInstallationPath | |
| SqlDbPrefix = $prefix | |
| SqlServer = $SqlServer | |
| SqlAdminUser = $SqlAdminUser | |
| SqlAdminPassword = $SqlAdminPassword | |
| SolrCorePrefix = $prefix | |
| SolrURL = $SolrURL | |
| } | |
| Install-SitecoreConfiguration @xconnectParams | |
| #install solr cores for sitecore | |
| $solrParams = @{ | |
| Path = "$PSScriptRoot\sitecore-solr.json" | |
| SolrUrl = $SolrUrl | |
| SolrRoot = $SolrRoot | |
| SolrService = $SolrService | |
| CorePrefix = $prefix | |
| } | |
| Install-SitecoreConfiguration @solrParams | |
| #install sitecore instance | |
| $xconnectHostName = "$prefix.xconnect" | |
| $sitecoreParams = @{ | |
| Path = "$PSScriptRoot\sitecore-XP0.json" | |
| Package = "$PSScriptRoot\Sitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip" | |
| LicenseFile = "$PSScriptRoot\license.xml" | |
| SqlDbPrefix = $prefix | |
| SqlServer = $SqlServer | |
| SqlAdminUser = $SqlAdminUser | |
| SqlAdminPassword = $SqlAdminPassword | |
| SolrCorePrefix = $prefix | |
| SolrUrl = $SolrUrl | |
| InstallationPath = $SitecoreInstallationPath | |
| XConnectCert = $certParams.CertificateName | |
| Sitename = $sitecoreSiteName | |
| XConnectCollectionService = "https://$XConnectCollectionService" | |
| } | |
| Install-SitecoreConfiguration @sitecoreParams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment