11{
22 "$schema" : " http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
33 "contentVersion" : " 1.0.0.0" ,
4- "parameters" : {
5- "webSiteName" : {
6- "type" : " string" ,
7- "minLength" : 1
8- },
9- "webPortalClientId" : {
10- "type" : " string" ,
11- "minLength" : 1
12- },
13- "webPortalClientSecret" : {
14- "type" : " string" ,
15- "minLength" : 1
16- },
17- "webPortalAadTenantId" : {
18- "type" : " string" ,
19- "minLength" : 1
20- },
21- "partnerCenterApplicationId" : {
22- "type" : " string" ,
23- "minLength" : 1
24- },
25- "partnerCenterApplicationSecret" : {
26- "type" : " string" ,
27- "minLength" : 1
28- },
29- "partnerCenterAadTenantId" : {
30- "type" : " string" ,
31- "minLength" : 1
32- },
33- "aadAuthorityEndpoint" : {
34- "type" : " string" ,
35- "defaultValue" : " https://login.microsoftonline.com/"
36- },
37- "graphEndpoint" : {
38- "type" : " string" ,
39- "defaultValue" : " https://graph.windows.net"
40- },
41- "azureStorageConnectionEndpointSuffix" : {
42- "type" : " string" ,
43- "defaultValue" : " core.windows.net"
44- },
45- "partnercenterApiEndpoint" : {
46- "type" : " string" ,
47- "defaultValue" : " https://api.partnercenter.microsoft.com"
48- },
49- "hostingPlanName" : {
50- "type" : " string" ,
51- "minLength" : 1
52- },
53- "skuName" : {
54- "type" : " string" ,
55- "defaultValue" : " F1" ,
56- "allowedValues" : [
57- " F1" ,
58- " D1" ,
59- " B1" ,
60- " B2" ,
61- " B3" ,
62- " S1" ,
63- " S2" ,
64- " S3" ,
65- " P1" ,
66- " P2" ,
67- " P3" ,
68- " P4"
69- ],
70- "metadata" : {
71- "description" : " Describes plan's pricing tier and instance size. Check details at https://azure.microsoft.com/en-us/pricing/details/app-service/"
72- }
73- },
74- "skuCapacity" : {
75- "type" : " int" ,
76- "defaultValue" : 1 ,
77- "minValue" : 1 ,
78- "metadata" : {
79- "description" : " Describes plan's instance count"
80- }
81- },
82- "_artifactsLocation" : {
83- "type" : " string"
84- },
85- "_artifactsLocationSasToken" : {
86- "type" : " securestring"
87- },
88- "CustomerPortalPackageFolder" : {
89- "type" : " string" ,
90- "minLength" : 1 ,
91- "metadata" : {
92- "description" : " WebDeploy package location. This path is relative to the _artifactsLocation parameter"
93- }
94- },
95- "CustomerPortalPackageFileName" : {
96- "type" : " string" ,
97- "minLength" : 1 ,
98- "metadata" : {
99- "description" : " Name of the webdeploy package"
100- }
101- },
102- "CustomerPortalStorageAccountType" : {
103- "type" : " string" ,
104- "defaultValue" : " Standard_LRS" ,
105- "allowedValues" : [
106- " Standard_LRS" ,
107- " Standard_ZRS" ,
108- " Standard_GRS" ,
109- " Standard_RAGRS" ,
110- " Premium_LRS"
111- ]
112- }
4+ "parameters" : {
5+ "webSiteName" : {
6+ "type" : " string" ,
7+ "minLength" : 1
8+ },
9+ "webPortalClientId" : {
10+ "type" : " string" ,
11+ "minLength" : 1
12+ },
13+ "webPortalClientSecret" : {
14+ "type" : " string" ,
15+ "minLength" : 1
16+ },
17+ "webPortalAadTenantId" : {
18+ "type" : " string" ,
19+ "minLength" : 1
20+ },
21+ "partnerCenterApplicationId" : {
22+ "type" : " string" ,
23+ "minLength" : 1
24+ },
25+ "partnerCenterApplicationSecret" : {
26+ "type" : " string" ,
27+ "minLength" : 1
11328 },
29+ "partnerCenterAadTenantId" : {
30+ "type" : " string" ,
31+ "minLength" : 1
32+ },
33+ "aadAuthorityEndpoint" : {
34+ "type" : " string" ,
35+ "defaultValue" : " https://login.microsoftonline.com/"
36+ },
37+ "graphEndpoint" : {
38+ "type" : " string" ,
39+ "defaultValue" : " https://graph.windows.net"
40+ },
41+ "azureStorageConnectionEndpointSuffix" : {
42+ "type" : " string" ,
43+ "defaultValue" : " core.windows.net"
44+ },
45+ "partnercenterApiEndpoint" : {
46+ "type" : " string" ,
47+ "defaultValue" : " https://api.partnercenter.microsoft.com"
48+ },
49+ "hostingPlanName" : {
50+ "type" : " string" ,
51+ "minLength" : 1
52+ },
53+ "skuName" : {
54+ "type" : " string" ,
55+ "defaultValue" : " F1" ,
56+ "allowedValues" : [
57+ " F1" ,
58+ " D1" ,
59+ " B1" ,
60+ " B2" ,
61+ " B3" ,
62+ " S1" ,
63+ " S2" ,
64+ " S3" ,
65+ " P1" ,
66+ " P2" ,
67+ " P3" ,
68+ " P4"
69+ ],
70+ "metadata" : {
71+ "description" : " Describes plan's pricing tier and instance size. Check details at https://azure.microsoft.com/en-us/pricing/details/app-service/"
72+ }
73+ },
74+ "skuCapacity" : {
75+ "type" : " int" ,
76+ "defaultValue" : 1 ,
77+ "minValue" : 1 ,
78+ "metadata" : {
79+ "description" : " Describes plan's instance count"
80+ }
81+ },
82+ "_artifactsLocation" : {
83+ "type" : " string"
84+ },
85+ "_artifactsLocationSasToken" : {
86+ "type" : " securestring"
87+ },
88+ "CustomerPortalPackageFolder" : {
89+ "type" : " string" ,
90+ "minLength" : 1 ,
91+ "metadata" : {
92+ "description" : " WebDeploy package location. This path is relative to the _artifactsLocation parameter"
93+ }
94+ },
95+ "CustomerPortalPackageFileName" : {
96+ "type" : " string" ,
97+ "minLength" : 1 ,
98+ "metadata" : {
99+ "description" : " Name of the webdeploy package"
100+ }
101+ },
102+ "CustomerPortalStorageAccountType" : {
103+ "type" : " string" ,
104+ "defaultValue" : " Standard_LRS" ,
105+ "allowedValues" : [
106+ " Standard_LRS" ,
107+ " Standard_ZRS" ,
108+ " Standard_GRS" ,
109+ " Standard_RAGRS" ,
110+ " Premium_LRS"
111+ ]
112+ }
113+ },
114114 "variables" : {
115115 "CustomerPortalStorageAccountName" : " [concat('storage', uniqueString(resourceGroup().id))]"
116116 },
178178 "tags" : {
179179 "displayName" : " ApplicationSettings"
180180 },
181- "properties" : {
182- "webPortal.clientId" : " [parameters('webPortalClientId')]" ,
183- "webPortal.clientSecret" : " [parameters('webPortalClientSecret')]" ,
184- "webPortal.AadTenantId" : " [parameters('webPortalAadTenantId')]" ,
185- "aadEndpoint" : " [parameters('aadAuthorityEndpoint')]" ,
186- "aadGraphEndpoint" : " [parameters('graphEndpoint')]" ,
187- "partnerCenter.apiEndPoint" : " [parameters('partnercenterApiEndpoint')]" ,
188- "partnerCenter.applicationId" : " [parameters('partnerCenterApplicationId')]" ,
189- "partnerCenter.applicationSecret" : " [parameters('partnerCenterApplicationSecret')]" ,
190- "partnerCenter.AadTenantId" : " [parameters('partnerCenterAadTenantId')]" ,
191- "webPortal.azureStorageConnectionString" : " [Concat('DefaultEndpointsProtocol=https;AccountName=',variables('CustomerPortalStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('CustomerPortalStorageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value)]" ,
192- "webPortal.azureStorageConnectionEndpointSuffix" : " [parameters('azureStorageConnectionEndpointSuffix')]" ,
193- "webPortal.cacheConnectionString" : " "
194- }
181+ "properties" : {
182+ "webPortal.clientId" : " [parameters('webPortalClientId')]" ,
183+ "webPortal.clientSecret" : " [parameters('webPortalClientSecret')]" ,
184+ "webPortal.AadTenantId" : " [parameters('webPortalAadTenantId')]" ,
185+ "aadEndpoint" : " [parameters('aadAuthorityEndpoint')]" ,
186+ "aadGraphEndpoint" : " [parameters('graphEndpoint')]" ,
187+ "partnerCenter.apiEndPoint" : " [parameters('partnercenterApiEndpoint')]" ,
188+ "partnerCenter.applicationId" : " [parameters('partnerCenterApplicationId')]" ,
189+ "partnerCenter.applicationSecret" : " [parameters('partnerCenterApplicationSecret')]" ,
190+ "partnerCenter.AadTenantId" : " [parameters('partnerCenterAadTenantId')]" ,
191+ "webPortal.azureStorageConnectionString" : " [Concat('DefaultEndpointsProtocol=https;AccountName=',variables('CustomerPortalStorageAccountName'),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('CustomerPortalStorageAccountName')), providers('Microsoft.Storage', 'storageAccounts').apiVersions[0]).keys[0].value)]" ,
192+ "webPortal.azureStorageConnectionEndpointSuffix" : " [parameters('azureStorageConnectionEndpointSuffix')]" ,
193+ "webPortal.cacheConnectionString" : " "
194+ }
195195 }
196196 ]
197197 },
215215 "value" : " [concat('https://',reference(resourceId('Microsoft.Web/sites', parameters('webSiteName'))).hostNames[0])]"
216216 }
217217 }
218- }
218+ }
0 commit comments