8000 Functional test ARM template · gorpo/botbuilder-python@8406f24 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8406f24

Browse files
committed
Functional test ARM template
1 parent 469b30c commit 8406f24

File tree

1 file changed

+238
-0
lines changed
  • libraries/functional-tests/functionaltestbot/template/linux

1 file changed

+238
-0
lines changed
Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"botName": {
6+
"defaultValue": "nightly-build-python-linux",
7+
"type": "string",
8+
"minLength": 2
9+
},
10+
"sku": {
11+
"defaultValue": {
12+
"name": "S1",
13+
"tier": "Standard",
14+
"size": "S1",
15+
"family": "S",
16+
"capacity": 1
17+
},
18+
"type": "object"
19+
},
20+
"linuxFxVersion": {
21+
"type": "string",
22+
"defaultValue": "PYTHON|3.6"
23+
},
24+
"location": {
25+
"type": "string",
26+
"defaultValue": "West US",
27+
"metadata": {
28+
"description": "Location for all resources."
29+
}
30+
},
31+
"appId": {
32+
"defaultValue": "1234",
33+
"type": "string"
34+
},
35+
"appSecret": {
36+
"defaultValue": "blank",
37+
"type": "string"
38+
}
39+
},
40+
"variables": {
41+
"siteHost": "[concat(parameters('botName'), '.azurewebsites.net')]",
42+
"botEndpoint": "[concat('https://', variables('siteHost'), '/api/mybot')]"
43+
},
44+
"resources": [
45+
{
46+
"type": "Microsoft.Web/serverfarms",
47+
"apiVersion": "2017-08-01",
48+
"name": "[parameters('botName')]",
49+
"kind": "linux",
50+
"location": "[parameters('location')]",
51+
"sku": "[parameters('sku')]",
52+
"properties": {
53+
"name": "[parameters('botName')]",
54+
"reserved": true,
55+
"perSiteScaling": false,
56+
"targetWorkerCount": 0,
57+
"targetWorkerSizeId": 0
58+
}
59+
},
60+
{
61+
"type": "Microsoft.Web/sites",
62+
"apiVersion": "2016-08-01",
63+
"name": "[parameters('botName')]",
64+
"location": "[parameters('location')]",
65+
"dependsOn": [
66+
"[resourceId('Microsoft.Web/serverfarms', parameters('botName'))]"
67+
],
68+
"kind": "app,linux",
69+
"properties": {
70+
"enabled": true,
71+
"hostNameSslStates": [
72+
{
73+
"name": "[concat(parameters('botName'), '.azurewebsites.net')]",
74+
"sslState": "Disabled",
75+
"hostType": "Standard"
76+
},
77+
{
78+
"name": "[concat(parameters('botName'), '.scm.azurewebsites.net')]",
79+
"sslState": "Disabled",
80+
"hostType": "Repository"
81+
}
82+
],
83+
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('botName'))]",
84+
"siteConfig": {
85+
"linuxFxVersion": "[parameters('linuxFxVersion')]",
86+
"appSettings": [
87+
{
88+
"name": "WEBSITE_NODE_DEFAULT_VERSION",
89+
"value": "10.14.1"
90+
},
91+
{
92+
"name": "MicrosoftAppId",
93+
"value": "[parameters('appId')]"
94+
},
95+
{
96+
"name": "MicrosoftAppPassword",
97+
"value": "[parameters('appSecret')]"
98+
}
99+
]
100+
},
101+
"reserved": true,
102+
"scmSiteAlsoStopped": false,
103+
"clientAffinityEnabled": true,
104+
"clientCertEnabled": false,
105+
"hostNamesDisabled": false,
106+
"containerSize": 0,
107+
"dailyMemoryTimeQuota": 0,
108+
"httpsOnly": false
109+
}
110+
},
111+
{
112+
"type": "Microsoft.Web/sites/config",
113+
"apiVersion": "2016-08-01",
114+
"name": "[concat(parameters('botName'), '/web')]",
115+
"location": "West US",
116+
"dependsOn": [
117+
"[resourceId('Microsoft.Web/sites', parameters('botName'))]"
118+
],
119+
"properties": {
120+
"numberOfWorkers": 1,
121+
"defaultDocuments": [
122+
"Default.htm",
123+
"Default.html",
124+
"Default.asp",
125+
"index.htm",
126+
"index.html",
127+
"iisstart.htm",
128+
"default.aspx",
129+
"index.php",
130+
"hostingstart.html"
131+
],
132+
"netFrameworkVersion": "v4.0",
133+
"phpVersion": "",
134+
"pythonVersion": "",
135+
"nodeVersion": "",
136+
"linuxFxVersion": "[parameters('linuxFxVersion')]",
137+
"requestTracingEnabled": false,
138+
"remoteDebuggingEnabled": false,
139+
"httpLoggingEnabled": false,
140+
"logsDirectorySizeLimit": 35,
141+
"detailedErrorLoggingEnabled": false,
142+
"publishingUsername": "parameters('botName')",
143+
"scmType": "LocalGit",
144+
"use32BitWorkerProcess": true,
145+
"webSocketsEnabled": false,
146+
"alwaysOn": true,
147+
"appCommandLine": "",
148+
"managedPipelineMode": "Integrated",
149+
"virtualApplications": [
150+
{
151+
"virtualPath": "/",
152+
"physicalPath": "site\\wwwroot",
153+
"preloadEnabled": true,
154+
"virtualDirectories": null
155+
}
156+
],
157+
"winAuthAdminState": 0,
158+
"winAuthTenantState": 0,
159+
"customAppPoolIdentityAdminState": false,
160+
"customAppPoolIdentityTenantState": false,
161+
"loadBalancing": "LeastRequests",
162+
"routingRules": [],
163+
"experiments": {
164+
"rampUpRules": []
165+
},
166+
"autoHealEnabled": false,
167+
"vnetName": "",
168+
"siteAuthEnabled": false,
169+
"siteAuthSettings": {
170+
"enabled": null,
171+
"unauthenticatedClientAction": null,
172+
"tokenStoreEnabled": null,
173+
"allowedExternalRedirectUrls": null,
174+
"defaultProvider": null,
175+
"clientId": null,
176+
"clientSecret": null,
177+
"clientSecretCertificateThumbprint": null,
178+
"issuer": null,
179+
"allowedAudiences": null,
180+
"additionalLoginParams": null,
181+
"isAadAutoProvisioned": false,
182+
"googleClientId": null,
183+
"googleClientSecret": null,
184+
"googleOAuthScopes": null,
185+
"facebookAppId": null,
186+
"facebookAppSecret": null,
187+
"facebookOAuthScopes": null,
188+
"twitterConsumerKey": null,
189+
"twitterConsumerSecret": null,
190+
"microsoftAccountClientId": null,
191+
"microsoftAccountClientSecret": null,
192+
"microsoftAccountOAuthScopes": null
193+
},
194+
"localMySqlEnabled": false,
195+
"http20Enabled": true,
196+
"minTlsVersion": "1.2",
197+
"ftpsState": "AllAllowed",
198+
"reservedInstanceCount": 0
199+
}
200+
},
201+
{
202+
"apiVersion": "2017-12-01",
203+
"type": "Microsoft.BotService/botServices",
204+
"name": "[parameters('botName')]",
205+
"location": "global",
206+
"kind": "bot",
207+
"sku": {
208+
"name": "[parameters('botName')]"
209+
},
210+
"properties": {
211+
"name": "[parameters('botName')]",
212+
"displayName": "[parameters('botName')]",
213+
"endpoint": "[variables('botEndpoint')]",
214+
"msaAppId": "[parameters('appId')]",
215+
"developerAppInsightsApplicationId": null,
216+
"developerAppInsightKey": null,
217+
"publishingCredentials": null,
218+
"storageResourceId": null
219+
},
220+
"dependsOn": [
221+
"[resourceId('Microsoft.Web/sites/', parameters('botName'))]"
222+
]
223+
},
224+
{
225+
"type": "Microsoft.Web/sites/hostNameBindings",
226+
"apiVersion": "2016-08-01",
227+
"name": "[concat(parameters('botName'), '/', parameters('botName'), '.azurewebsites.net')]",
228+
"location": "West US",
229+
"dependsOn": [
230+
"[resourceId('Microsoft.Web/sites', parameters('botName'))]"
231+
],
232+
"properties": {
233+
"siteName": "parameters('botName')",
234+
"hostNameType": "Verified"
235+
}
236+
}
237+
]
238+
}

0 commit comments

Comments
 (0)
0