-
Notifications
You must be signed in to change notification settings - Fork 8
/
sitecore8.2.azure.ps1
101 lines (83 loc) · 2.84 KB
/
sitecore8.2.azure.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#requires -RunAsAdministrator
#requires -Version 5.1
#requires -module Azure
#requires -module AzureRm.Profile
#requires -module AzureRm.Storage
#requires -module AzureRm.KeyVault
#requires -module SitecoreInstallFramework
#requires -module SitecoreInstallExtensions
#requires -module SitecoreInstallAzure
If(![Environment]::Is64BitProcess)
{
Write-Host "Please run 64-bit PowerShell" -foregroundcolor "yellow"
return
}
#
# Remember you should configure scripts before run
#
$folderRoot = Split-Path -Path $MyInvocation.MyCommand.Source -Parent
$sitecoreVersion = "8.2"
$sitecoreRevision = "160729"
$sitecoreRole = "CM"
# Prefix is used for Sitecore website, xConnect website and database
$prefix = "sc82"
$siteName = "$prefix.local"
$MongoDbServer = ""
$AzureSubscription = ""
$AzureResourceGroup = ""
$AzureStorageName = ""
$SqlServer = "$env:computername" #OR "SQLServerName\SQLInstanceName"
$SqlAdminUser = ""
# for password use '' not ""
$SqlAdminPassword= ''
# Configure all parameters without default values
# or all parameters you want to overwrite
$downloadFromAzure =@{
Path = "$folderRoot\azure.json"
Destination = "$folderRoot\Storage"
SitecoreVersion = $sitecoreVersion
SitecoreRevision = $sitecoreRevision
SitecoreRole = $sitecoreRole
SubscriptionName = $AzureSubscription
ResourceGroupName = $AzureResourceGroup
StorageName = $AzureStorageName
InstallMongoDb = $false
InstallSolr = $false
}
Install-SitecoreConfiguration @downloadFromAzure -Verbose
# Configure all parameters without default values
# or all parameters you want to overwrite
$prerequisitesParams =@{
Path = "$folderRoot\sitecore-prerequisites.json"
LocalStorage = "$folderRoot\Storage"
InstallMongoDb = $false
InstallSolr = $false
}
Install-SitecoreConfiguration @prerequisitesParams -Verbose
# Configure all parameters without default values
# or all parameters you want to overwrite
$sitecoreParams =@{
Path = "$folderRoot\sitecore8-xp0.json"
SitecoreZip = "$folderRoot\Storage\Sitecore $SitecoreVersion rev. $SitecoreRevision.zip"
SitecoreZipFileName = "Sitecore $SitecoreVersion rev. $SitecoreRevision"
LicenseFile = "$folderRoot\Storage\license.xml"
SqlServerName = $SqlServer
SqlUser = $SqlAdminUser
SqlPassword = $SqlAdminPassword
SiteName = $siteName
SqlDbPrefix = $prefix
MongoServerName = $MongoDbServer
}
Install-SitecoreConfiguration @sitecoreParams -Verbose
# Configure all parameters without default values
# or all parameters you want to overwrite
$packagesParams =@{
Path = "$folderRoot\sitecore-packages.json"
LocalStorage = "$folderRoot\Storage"
SiteName = $siteName
SqlServerName = $SqlServer
SqlUser = $SqlAdminUser
SqlPassword = $SqlAdminPassword
SqlDbPrefix = $prefix
}
Install-SitecoreConfiguration @packagesParams -Verbose