-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-deploy.json
189 lines (189 loc) · 7.99 KB
/
azure-deploy.json
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"Parameters" : {
"DeploymentId" : {
"Type" : "string",
"DefaultValue" : "my-sitecore-site",
"Description" : "The Deployment ID"
},
"UseServicePrincipal" : {
"Type": "Boolean",
"DefaultValue": true,
"Description": "Use a service principal to authenticate, or Live / AD login if not"
},
"SubscriptionId" : {
"Type": "string",
"DefaultValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"Description": "The Azure Subscription ID"
},
"TenantId" : {
"Type": "string",
"DefaultValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"Description": "The Service Principal Tenant ID, if using"
},
"ApplicationId" : {
"Type": "string",
"DefaultValue": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"Description": "The Service Principal Application ID, if using"
},
"ApplicationPassword" : {
"Type": "string",
"DefaultValue": "password",
"Description": "The Service Principal Application Password, if using"
},
"ResourceGroupName":{
"Type": "string",
"DefaultValue": "sitecore9resourcegroup",
"Description" : "The name of the resource group in which to provision Sitecore"
},
"Location" : {
"Type": "string",
"DefaultValue" : "West Europe",
"Description" : "The Azure region in which to deploy"
},
"StorageAccountLocation" : {
"Type" : "string",
"DefaultValue" : "West Europe",
"Description" : "The Azure region in which to create the storage account"
},
"StorageAccountName" : {
"Type" : "string",
"DefaultValue" : "sitecore9StorageAccount",
"Description" : "The storage account name"
},
"LicenseFilePath" : {
"Type": "string",
"DefaultValue" : "C:\\Sitecore\\Licenses\\License.xml",
"Description" : "The file path to the Sitecore License"
},
"SslCertificateFilePath" : {
"Type": "string",
"DefaultValue" : "C:\\Certs\\my-ssl-cert.p12",
"Description" : "The file path to the SSL Certificate"
},
"SslCertificatePassword" : {
"Type" : "string",
"DefaultValue" : "password",
"Description" : "The SSL Certificate's Password"
},
"SitecoreAdminPassword" : {
"Type" : "string",
"DefaultValue" : "password",
"Description" : "The Sitecore Admin Password"
},
"SqlServerUsername" : {
"Type" : "string",
"DefaultValue" : "sitecoreuser",
"Description" : "The SQL server user name"
},
"SqlServerPassword" : {
"Type" : "string",
"DefaultValue" : "password",
"Description" : "The SQL Server Password"
},
"SingleMsDeployPackageUrl": {
"Type": "string",
"DefaultValue": "https://my-storage-account.blob.core.windows.net/sitecorearchives/Sitecore%209.0.0%20rev.%20171002%20(Cloud)_single.scwdp.zip",
"Description" : "Url to the MS Deploy Package for Sitecore XP if not uploading a new one"
},
"XcSingleMsDeployPackageUrl": {
"Type" : "string",
"DefaultValue": "https://my-storage-account.blob.core.windows.net/sitecorearchives/Sitecore%209.0.0%20rev.%20171002%20(Cloud)_xp0xconnect.scwdp.zip",
"Description" : "Url to the MS Deploy Package for Sitecore XC if not uploading a new one"
},
"TemplateUri": {
"Type" : "string",
"DefaultValue": "https://raw.githubusercontent.com/Sitecore/Sitecore-Azure-Quickstart-Templates/master/Sitecore%209.0.0/XPSingle/azuredeploy.json",
"Description" : "Url to the ARM template used to deploy"
}
},
"Variables" : {
"MsDeployPackageUrl" : "[concat('https://', parameter('StorageAccountName'), '.blob.core.windows.net/', parameter('ContainerName'), '/', parameter('SitecoreBlobName'))]",
"XCMsDeployPackageUrl" : "[concat('https://', parameter('StorageAccountName'), '.blob.core.windows.net/', parameter('ContainerName'), '/', parameter('XCBlobName'))]"
},
"Modules" : [
"Install-SitecoreExperienceCloud.psm1"
],
"Tasks" : {
"Login to Azure" : {
"Type" : "SetAzureLogin",
"Params" : {
"UseServicePrincipal" : "[parameter('UseServicePrincipal')]",
"TenantId" : "[parameter('TenantId')]",
"ApplicationId" : "[parameter('ApplicationId')]",
"ApplicationPassword" : "[parameter('ApplicationPassword')]"
}
},
"Set Azure RM Context" : {
"Type" : "SetAzureContext",
"Description" : "Sets the Azure Rm Context",
"Params" : {
"SubscriptionId" : "[parameter('SubscriptionId')]",
"UseServicePrincipal" : "[parameter('UseServicePrincipal')]",
"TenantId" : "[parameter('TenantId')]"
}
},
"Set New Resource Group" : {
"Type" : "SetResourceGroup",
"Description" : "Sets the resource group",
"Params" : {
"ResourceGroupName" : "[parameter('ResourceGroupName')]",
"Location" : "[parameter('Location')]"
}
},
"Set Sitecore License" : {
"Type" : "SetLicenseFile",
"Description" : "Gets the Sitecore License and adds to deployment parameters",
"Params" : {
"FilePath" : "[parameter('LicenseFilePath')]"
}
},
"Set the SSL Certificate" : {
"Type" : "SetSslCert",
"Description" : "Gets the SSL Certificate and adds to deployment parameters",
"Params" : {
"FilePath" : "[parameter('SslCertificateFilePath')]",
"CertPass" : "[parameter('SslCertificatePassword')]"
}
},
"Set The Deployment ID" : {
"Type" : "SetDeploymentId",
"Description" : "Sets the Deployment ID and adds to deployment parameters based on the Resource Group Name",
"Params" : {
"DeploymentId" : "[parameter('DeploymentId')]"
}
},
"Set The Location" : {
"Type" : "SetAzureRegion",
"Description" : "Sets the Location of the Deployment",
"Params" : {
"Location" : "[parameter('Location')]"
}
},
"Set The Sitecore Parameters" : {
"Type" : "SetSitecoreParams",
"Description" : "Sets the Sitecore & SQL Parameters for the deployment",
"Params" : {
"SitecoreAdminPassword" : "[parameter('SitecoreAdminPassword')]",
"SqlUsername" : "[parameter('SqlServerUsername')]",
"SqlPassword" : "[parameter('SqlServerPassword')]",
"SingleMsDeployPackageUrl" : "[parameter('SingleMsDeployPackageUrl')]",
"XcSingleMsDeployPackageUrl" : "[parameter('XcSingleMsDeployPackageUrl')]"
}
},
"Get Confirmation To Proceed" : {
"Type" : "GetUserConfirmation",
"Description" : "Prompts the user to review and accept the deployment parameters before proceeding",
"Params" : {}
},
"Deploy to Azure" : {
"Type" : "NewAzureRmResourceGroupDeployment",
"Description" : "Deploy the defined configuration and ARM templates to the Resource Group",
"Params" : {
"ResourceGroupName" : "[parameter('ResourceGroupName')]",
"Location" : "[parameter('Location')]",
"DeploymentName" : "[parameter('DeploymentId')]",
"TemplateUri" : "[parameter('TemplateUri')]"
}
}
}
}