forked from microsoft/BotFramework-FunctionalTests
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployBotResources.yml
705 lines (652 loc) · 29.4 KB
/
deployBotResources.yml
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
#
# Deploys the bot resources needed for the Skills Functional Tests.
#
name: "$(BUILD.BUILDID)"
trigger: none
pr: none
pool:
vmImage: "windows-2022"
parameters:
- name: dependenciesVersionDotNetHosts
displayName: DotNet Hosts Version
type: string
default: $env:DEPENDENCIESVERSIONDOTNETHOSTS
- name: dependenciesRegistryDotNetHosts
displayName: DotNet Hosts Registry
type: string
default: Artifacts
values:
- Artifacts
- MyGet
- NuGet
- name: dependenciesVersionDotNetSkills
displayName: DotNet Skills Version
type: string
default: $env:DEPENDENCIESVERSIONDOTNETSKILLS
- name: dependenciesRegistryDotNetSkills
displayName: DotNet Skills Registry
type: string
default: Artifacts
values:
- Artifacts
- MyGet
- NuGet
- name: dependenciesVersionDotNetSkillsV3
displayName: DotNet Skills V3 Version
type: string
default: $env:DEPENDENCIESVERSIONDOTNETSKILLSV3
- name: dependenciesRegistryDotNetSkillsV3
displayName: DotNet Skills V3 Registry
type: string
default: MyGet
values:
- MyGet
- NuGet
- name: dependenciesVersionJSHosts
displayName: JS Hosts Version
type: string
default: $env:DEPENDENCIESVERSIONJSHOSTS
- name: dependenciesRegistryJSHosts
displayName: JS Hosts Registry
type: string
default: MyGet
values:
- MyGet
- Npm
- name: dependenciesVersionJSSkills
displayName: JS Skills Version
type: string
default: $env:DEPENDENCIESVERSIONJSSKILLS
- name: dependenciesRegistryJSSkills
displayName: JS Skills Registry
type: string
default: MyGet
values:
- MyGet
- Npm
- name: dependenciesVersionJSSkillsV3
displayName: JS Skills V3 Version
type: string
default: $env:DEPENDENCIESVERSIONJSSKILLSV3
- name: dependenciesRegistryJSSkillsV3
displayName: JS Skills V3 Registry
type: string
default: MyGet
values:
- MyGet
- Npm
- name: dependenciesVersionPythonHosts
displayName: Python Hosts Version
type: string
default: $env:DEPENDENCIESVERSIONPYTHONHOSTS
- name: dependenciesRegistryPythonHosts
displayName: Python Hosts Registry
type: string
default: Artifacts
values:
- Artifacts
- Pypi
- Test.Pypi
- name: dependenciesVersionPythonSkills
displayName: Python Skills Version
type: string
default: $env:DEPENDENCIESVERSIONPYTHONSKILLS
- name: dependenciesRegistryPythonSkills
displayName: Python Skills Registry
type: string
default: Artifacts
values:
- Artifacts
- Pypi
- Test.Pypi
variables:
BuildConfiguration: "Debug"
BuildPlatform: "AnyCPU"
## Azure Resources (Define these variables in Azure)
# AzureSubscription: Service Connection Name to Manage Azure resources.
# AppServicePlanDotNetName: Name of the App Service Plan for DotNet bots.
# AppServicePlanJSName: Name of the App Service Plan for JavaScript bots.
# AppServicePlanPythonName: Name of the App Service Plan for Python bots.
# BotPricingTier: (optional) Pricing Tier for the bots, default F0.
# ContainerRegistryName: (optional) Name of the Container Registry.
# ResourceGroup: (optional) Name of the Resource Group where the bots will be deployed.
# ResourceSuffix: (optional) Alphanumeric suffix to add to the resources' name to avoid collisions.
# SharedResourceGroup: (optional) Name of the Shared Resource Group.
# VirtualNetworkName: (optional) Name of the Virtual Network.
## Bots Configuration (Define these variables in Azure)
# BffnComposerHostBotDotNetAppId: App Id for BffnComposerHostBotDotNet bot.
# BffnComposerHostBotDotNetAppSecret: App Secret for BffnComposerHostBotDotNet bot.
# BffnComposerSkillBotDotNetAppId: App Id for BffnComposerSkillBotDotNet bot.
# BffnComposerSkillBotDotNetAppSecret: App Secret for BffnComposerSkillBotDotNet bot.
# BffnEchoSkillBotComposerDotNetAppId: App Id for BffnEchoSkillBotComposerDotNet bot.
# BffnEchoSkillBotComposerDotNetAppSecret: App Secret for BffnEchoSkillBotComposerDotNet bot.
# BffnEchoSkillBotDotNetAppId: App Id for BffnEchoSkillBotDotNet bot.
# BffnEchoSkillBotDotNetAppSecret: App Secret for BffnEchoSkillBotDotNet bot.
# BffnEchoSkillBotDotNet31AppId: App Id for BffnEchoSkillBotDotNet31 bot.
# BffnEchoSkillBotDotNet31AppSecret: App Secret for BffnEchoSkillBotDotNet31 bot.
# BffnEchoSkillBotDotNetSTAppId: App Id for BffnEchoSkillBotDotNetST bot.
# BffnEchoSkillBotDotNetSTAppSecret: App Secret for BffnEchoSkillBotDotNetST bot.
# BffnEchoSkillBotDotNetV3AppId: App Id for BffnEchoSkillBotDotNetV3 bot.
# BffnEchoSkillBotDotNetV3AppSecret: App Secret for BffnEchoSkillBotDotNetV3 bot.
# BffnEchoSkillBotJSAppId: App Id for BffnEchoSkillBotJS bot.
# BffnEchoSkillBotJSAppSecret: App Secret for BffnEchoSkillBotJS bot.
# BffnEchoSkillBotJSSTAppId: App Id for BffnEchoSkillBotJSST bot.
# BffnEchoSkillBotJSSTAppSecret: App Secret for BffnEchoSkillBotJSST bot.
# BffnEchoSkillBotJSV3AppId: App Id for BffnEchoSkillBotJSV3 bot.
# BffnEchoSkillBotJSV3AppSecret: App Secret for BffnEchoSkillBotJSV3 bot.
# BffnEchoSkillBotPythonAppId: App Id for BffnEchoSkillBotPython bot.
# BffnEchoSkillBotPythonAppSecret: App Secret for BffnEchoSkillBotPython bot.
# BffnSimpleHostBotComposerDotNetAppId: App Id for BffnSimpleHostBotComposerDotNet bot.
# BffnSimpleHostBotComposerDotNetAppSecret: App Secret for BffnSimpleHostBotComposerDotNet bot.
# BffnSimpleHostBotDotNetAppId: App Id for BffnSimpleHostBotDotNet bot.
# BffnSimpleHostBotDotNetAppSecret: App Secret for BffnSimpleHostBotDotNet bot.
# BffnSimpleHostBotDotNet31AppId: App Id for BffnSimpleHostBotDotNet31 bot.
# BffnSimpleHostBotDotNet31AppSecret: App Secret for BffnSimpleHostBotDotNet31 bot.
# BffnSimpleHostBotDotNetSTAppId: App Id for BffnSimpleHostBotDotNetST bot.
# BffnSimpleHostBotDotNetSTAppSecret: App Secret for BffnSimpleHostBotDotNetST bot.
# BffnSimpleHostBotJSAppId: App Id for BffnSimpleHostBotJS bot.
# BffnSimpleHostBotJSAppSecret: App Secret for BffnSimpleHostBotJS bot.
# BffnSimpleHostBotJSSTAppId: App Id for BffnSimpleHostBotJSST bot.
# BffnSimpleHostBotJSSTAppSecret: App Secret for BffnSimpleHostBotJSST bot.
# BffnSimpleHostBotPythonAppId: App Id for BffnSimpleHostBotPython bot.
# BffnSimpleHostBotPythonAppSecret: App Secret for BffnSimpleHostBotPython bot.
# BffnWaterfallHostBotDotNetAppId: App Id for BffnWaterfallHostBotDotNet bot.
# BffnWaterfallHostBotDotNetAppSecret: App Secret for BffnWaterfallHostBotDotNet bot.
# BffnWaterfallSkillBotDotNetAppId: App Id for BffnWaterfallSkillBotDotNet bot.
# BffnWaterfallSkillBotDotNetAppSecret: App Secret for BffnWaterfallSkillBotDotNet bot.
# BffnWaterfallHostBotJSAppId: App Id for BffnWaterfallHostBotJS bot.
# BffnWaterfallHostBotJSAppSecret: App Secret for BffnWaterfallHostBotJS bot.
# BffnWaterfallSkillBotJSAppId: App Id for BffnWaterfallSkillBotJS bot.
# BffnWaterfallSkillBotJSAppSecret: App Secret for BffnWaterfallSkillBotJS bot.
# BffnWaterfallHostBotPythonAppId: App Id for BffnWaterfallHostBotPython bot.
# BffnWaterfallHostBotPythonAppSecret: App Secret for BffnWaterfallHostBotPython bot.
# BffnWaterfallSkillBotPythonAppId: App Id for BffnWaterfallSkillBotPython bot.
# BffnWaterfallSkillBotPythonAppSecret: App Secret for BffnWaterfallSkillBotPython bot.
# ConnectionName: (optional) Name for the OAuth connection to use in the skill bots.
## DependenciesVersion (Define these variables in Azure) Possible values are: Latest (default), Stable, or specific version numbers.
# DependenciesVersionDotNetHosts: (optional) Bot Builder dependency version to use for DotNet host bots.
# DependenciesVersionDotNetSkills: (optional) Bot Builder dependency version to use for DotNet skill bots.
# DependenciesVersionDotNetSkillsV3: (optional) Bot Builder dependency version to use for DotNet skill V3 bots.
# DependenciesVersionJSHosts: (optional) Bot Builder dependency version to use for JS host bots.
# DependenciesVersionJSSkills: (optional) Bot Builder dependency version to use for JS skill bots.
# DependenciesVersionJSSkillsV3: (optional) Bot Builder dependency version to use for JS skill V3 bots.
# DependenciesVersionPythonHosts: (optional) Bot Builder dependency version to use for Python host bots.
# DependenciesVersionPythonSkills: (optional) Bot Builder dependency version to use for Python skill bots.
## Internal variables
InternalAppInsightsName: 'bffnappinsights$(INTERNALRESOURCESUFFIX)'
InternalAppServicePlanDotNetName: $(APPSERVICEPLANDOTNETNAME)$(INTERNALRESOURCESUFFIX)
InternalAppServicePlanJSName: $(APPSERVICEPLANJSNAME)$(INTERNALRESOURCESUFFIX)
InternalAppServicePlanPythonName: $(APPSERVICEPLANPYTHONNAME)$(INTERNALRESOURCESUFFIX)
InternalContainerRegistryName: $[coalesce(variables['CONTAINERREGISTRYNAME'], 'bffncontainerregistry$(INTERNALRESOURCESUFFIX)')]
InternalProjectTag: $[coalesce(variables['PROJECTTAG'], 'BFFN')]
InternalKeyVaultName: 'bffnbotkeyvault$(INTERNALRESOURCESUFFIX)'
InternalResourceGroupName: $[coalesce(variables['RESOURCEGROUP'], 'BFFN')]
InternalResourceSuffix: $[coalesce(variables['RESOURCESUFFIX'], '')]
InternalSharedResourceGroupName: $[coalesce(variables['SHAREDRESOURCEGROUP'], 'BFFN-Shared')]
InternalVirtualNetworkName: $[coalesce(variables['VIRTUALNETWORKNAME'], 'bffnvirtualnetwork$(INTERNALRESOURCESUFFIX)')]
stages:
# Resource Groups
- template: common/prepareResources.yml
parameters:
azureSubscription: "$(AZURESUBSCRIPTION)"
resourceGroups:
- id: "Prepare_DotNetGroup"
name: "$(INTERNALRESOURCEGROUPNAME)-DotNet"
displayName: "Prepare DotNet's Resource Group"
- id: "Prepare_JSGroup"
name: "$(INTERNALRESOURCEGROUPNAME)-JS"
displayName: "Prepare JS's Resource Group"
- id: "Prepare_PythonGroup"
name: "$(INTERNALRESOURCEGROUPNAME)-Python"
displayName: "Prepare Python's Resource Group"
# DotNet
- template: dotnet/deploy.yml
parameters:
appInsight: "$(INTERNALAPPINSIGHTSNAME)"
appServicePlan: "$(INTERNALAPPSERVICEPLANDOTNETNAME)"
azureSubscription: "$(AZURESUBSCRIPTION)"
botPricingTier: $env:BOTPRICINGTIER
connectionName: $env:CONNECTIONNAME
keyVault: "$(INTERNALKEYVAULTNAME)"
projectTag: "$(INTERNALPROJECTTAG)"
resourceGroup: "$(INTERNALRESOURCEGROUPNAME)-DotNet"
resourceSuffix: $(INTERNALRESOURCESUFFIX)
sharedResourceGroup: "$(INTERNALSHAREDRESOURCEGROUPNAME)"
virtualNetwork: "$(INTERNALVIRTUALNETWORKNAME)"
bots:
# DotNet bots
- name: "bffnsimplehostbotdotnet"
dependsOn: "Prepare_DotNetGroup"
type: "Host"
displayName: "DotNet Simple Host Bot"
appId: $(BFFNSIMPLEHOSTBOTDOTNETAPPID)
appSecret: $(BFFNSIMPLEHOSTBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/SimpleHostBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.SimpleHostBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnsimplehostbotdotnet31"
dependsOn: "Prepare_DotNetGroup"
type: "Host"
displayName: "DotNet Simple Host Bot 3.1"
appId: $(BFFNSIMPLEHOSTBOTDOTNET31APPID)
appSecret: $(BFFNSIMPLEHOSTBOTDOTNET31APPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/SimpleHostBot-3.1'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.SimpleHostBot31.csproj"
netCoreVersion: "3.1.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnechoskillbotdotnet"
dependsOn: "Prepare_DotNetGroup"
type: "Skill"
displayName: "DotNet Echo Skill Bot"
appId: $(BFFNECHOSKILLBOTDOTNETAPPID)
appSecret: $(BFFNECHOSKILLBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/EchoSkillBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
- name: "bffnechoskillbotdotnet31"
dependsOn: "Prepare_DotNetGroup"
type: "Skill"
displayName: "DotNet Echo Skill Bot 3.1"
appId: $(BFFNECHOSKILLBOTDOTNET31APPID)
appSecret: $(BFFNECHOSKILLBOTDOTNET31APPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/EchoSkillBot-3.1'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBot31.csproj"
netCoreVersion: "3.1.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
# DotNet V3 bots
- name: "bffnechoskillbotdotnetv3"
dependsOn: "Prepare_DotNetGroup"
type: "SkillV3"
displayName: "DotNet Echo Skill Bot v3"
appId: $(BFFNECHOSKILLBOTDOTNETV3APPID)
appSecret: $(BFFNECHOSKILLBOTDOTNETV3APPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/EchoSkillBot-v3'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBot-v3.csproj"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkillsV3 }}
version: ${{ parameters.dependenciesVersionDotNetSkillsV3 }}
- name: "bffnwaterfallhostbotdotnet"
dependsOn: "Deploy_bffnsimplehostbotdotnet"
type: "Host"
displayName: "DotNet Waterfall Host Bot"
appId: $(BFFNWATERFALLHOSTBOTDOTNETAPPID)
appSecret: $(BFFNWATERFALLHOSTBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/WaterfallHostBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.WaterfallHostBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnwaterfallskillbotdotnet"
dependsOn: "Deploy_bffnsimplehostbotdotnet31"
type: "Skill"
displayName: "DotNet Waterfall Skill Bot"
appId: $(BFFNWATERFALLSKILLBOTDOTNETAPPID)
appSecret: $(BFFNWATERFALLSKILLBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/WaterfallSkillBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.WaterfallSkillBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
# DotNet Composer bots
- name: "bffnsimplehostbotcomposerdotnet"
dependsOn: "Deploy_bffnechoskillbotdotnet"
type: "ComposerHost"
displayName: "DotNet Simple Composer Host Bot"
appId: $(BFFNSIMPLEHOSTBOTCOMPOSERDOTNETAPPID)
appSecret: $(BFFNSIMPLEHOSTBOTCOMPOSERDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/SimpleHostBotComposer'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.SimpleHostBotComposer.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnechoskillbotcomposerdotnet"
dependsOn: "Deploy_bffnechoskillbotdotnet31"
type: "ComposerSkill"
displayName: "DotNet Echo Composer Skill Bot"
appId: $(BFFNECHOSKILLBOTCOMPOSERDOTNETAPPID)
appSecret: $(BFFNECHOSKILLBOTCOMPOSERDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/EchoSkillBotComposer'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBotComposer.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
- name: "bffncomposerhostbotdotnet"
dependsOn: "Deploy_bffnechoskillbotdotnetv3"
type: "ComposerHost"
displayName: "DotNet Composer Host Bot"
appId: $(BFFNCOMPOSERHOSTBOTDOTNETAPPID)
appSecret: $(BFFNCOMPOSERHOSTBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/ComposerHostBotDotNet'
name: "ComposerHostBotDotNet.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
- name: "bffncomposerskillbotdotnet"
dependsOn: "Deploy_bffnwaterfallhostbotdotnet"
type: "ComposerSkill"
displayName: "DotNet Composer Skill Bot"
appId: $(BFFNCOMPOSERSKILLBOTDOTNETAPPID)
appSecret: $(BFFNCOMPOSERSKILLBOTDOTNETAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/DotNet/ComposerSkillBotDotNet'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.ComposerSkillBotDotNet.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
# DotNet SingleTenant bots
- name: "bffnsimplehostbotdotnetst"
dependsOn: "Deploy_bffnechoskillbotcomposerdotnet"
type: "Host"
displayName: "DotNet Simple Host Bot SingleTenant"
appId: $(BFFNSIMPLEHOSTBOTDOTNETSTAPPID)
appSecret: $(BFFNSIMPLEHOSTBOTDOTNETSTAPPSECRET)
appType: "SingleTenant"
project:
directory: 'Bots/DotNet/SimpleHostBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.SimpleHostBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnechoskillbotdotnetst"
dependsOn: "Deploy_bffncomposerhostbotdotnet"
type: "Skill"
displayName: "DotNet Echo Skill Bot SingleTenant"
appId: $(BFFNECHOSKILLBOTDOTNETSTAPPID)
appSecret: $(BFFNECHOSKILLBOTDOTNETSTAPPSECRET)
appType: "SingleTenant"
project:
directory: 'Bots/DotNet/EchoSkillBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
# DotNet UserAssignedMSI bots
- name: "bffnsimplehostbotdotnetmsi"
dependsOn: "Deploy_bffnwaterfallskillbotdotnet"
type: "Host"
displayName: "DotNet Simple Host Bot UserAssignedMSI"
appType: "UserAssignedMSI"
project:
directory: 'Bots/DotNet/SimpleHostBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.SimpleHostBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetHosts }}
version: ${{ parameters.dependenciesVersionDotNetHosts }}
- name: "bffnechoskillbotdotnetmsi"
dependsOn: "Deploy_bffnsimplehostbotcomposerdotnet"
type: "Skill"
displayName: "DotNet Echo Skill Bot UserAssignedMSI"
appType: "UserAssignedMSI"
project:
directory: 'Bots/DotNet/EchoSkillBot'
name: "Microsoft.Bot.Builder.FunctionalTestsBots.EchoSkillBot.csproj"
netCoreVersion: "6.0.x"
dependency:
registry: ${{ parameters.dependenciesRegistryDotNetSkills }}
version: ${{ parameters.dependenciesVersionDotNetSkills }}
# JS
- template: js/deploy.yml
parameters:
appInsight: "$(INTERNALAPPINSIGHTSNAME)"
appServicePlan: "$(INTERNALAPPSERVICEPLANJSNAME)"
azureSubscription: "$(AZURESUBSCRIPTION)"
botPricingTier: $env:BOTPRICINGTIER
connectionName: $env:CONNECTIONNAME
dependsOn: "Prepare_JSGroup"
keyVault: "$(INTERNALKEYVAULTNAME)"
projectTag: "$(INTERNALPROJECTTAG)"
resourceGroup: "$(INTERNALRESOURCEGROUPNAME)-JS"
resourceSuffix: $(INTERNALRESOURCESUFFIX)
sharedResourceGroup: "$(INTERNALSHAREDRESOURCEGROUPNAME)"
virtualNetwork: "$(INTERNALVIRTUALNETWORKNAME)"
bots:
# JS bots
- name: "bffnsimplehostbotjs"
type: "Host"
displayName: "JS Simple Host Bot"
appId: $(BFFNSIMPLEHOSTBOTJSAPPID)
appSecret: $(BFFNSIMPLEHOSTBOTJSAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/JavaScript/SimpleHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSHosts }}
version: ${{ parameters.dependenciesVersionJSHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36000"
command: "npm start"
- name: "bffnechoskillbotjs"
type: "Skill"
displayName: "JS Echo Skill Bot"
appId: $(BFFNECHOSKILLBOTJSAPPID)
appSecret: $(BFFNECHOSKILLBOTJSAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/JavaScript/EchoSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSSkills }}
version: ${{ parameters.dependenciesVersionJSSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36400"
command: "npm start"
- name: "bffnechoskillbotjsv3"
type: "SkillV3"
displayName: "JS Echo Skill Bot v3"
appId: $(BFFNECHOSKILLBOTJSV3APPID)
appSecret: $(BFFNECHOSKILLBOTJSV3APPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/JavaScript/EchoSkillBot-v3'
dependency:
registry: ${{ parameters.dependenciesRegistryJSSkillsV3 }}
version: ${{ parameters.dependenciesVersionJSSkillsV3 }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36407"
command: "npm start"
- name: "bffnwaterfallhostbotjs"
type: "Host"
displayName: "JS Waterfall Host Bot"
appId: $(BFFNWATERFALLHOSTBOTJSAPPID)
appSecret: $(BFFNWATERFALLHOSTBOTJSAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/JavaScript/WaterfallHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSHosts }}
version: ${{ parameters.dependenciesVersionJSHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36020"
command: "npm start"
- name: "bffnwaterfallskillbotjs"
type: "Skill"
displayName: "JS Waterfall Skill Bot"
appId: $(BFFNWATERFALLSKILLBOTJSAPPID)
appSecret: $(BFFNWATERFALLSKILLBOTJSAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/JavaScript/WaterfallSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSSkills }}
version: ${{ parameters.dependenciesVersionJSSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36420"
command: "npm start"
# JS SingleTenant bots
- name: "bffnsimplehostbotjsst"
type: "Host"
displayName: "JS Simple Host Bot SingleTenant"
appId: $(BFFNSIMPLEHOSTBOTJSSTAPPID)
appSecret: $(BFFNECHOSKILLBOTJSSTAPPSECRET)
appType: "SingleTenant"
project:
directory: 'Bots/JavaScript/SimpleHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSHosts }}
version: ${{ parameters.dependenciesVersionJSHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36000"
command: "npm start"
- name: "bffnechoskillbotjsst"
type: "Skill"
displayName: "JS Echo Skill Bot SingleTenant"
appId: $(BFFNECHOSKILLBOTJSSTAPPID)
appSecret: $(BFFNECHOSKILLBOTJSSTAPPSECRET)
appType: "SingleTenant"
project:
directory: 'Bots/JavaScript/EchoSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSSkills }}
version: ${{ parameters.dependenciesVersionJSSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36400"
command: "npm start"
# JS UserAssignedMSI bots
- name: "bffnsimplehostbotjsmsi"
type: "Host"
displayName: "JS Simple Host Bot UserAssignedMSI"
appType: "UserAssignedMSI"
project:
directory: 'Bots/JavaScript/SimpleHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSHosts }}
version: ${{ parameters.dependenciesVersionJSHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36000"
command: "npm start"
- name: "bffnechoskillbotjsmsi"
type: "Skill"
displayName: "JS Echo Skill Bot UserAssignedMSI"
appType: "UserAssignedMSI"
project:
directory: 'Bots/JavaScript/EchoSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryJSSkills }}
version: ${{ parameters.dependenciesVersionJSSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "36400"
command: "npm start"
# Python
- template: python/deploy.yml
parameters:
appInsight: "$(INTERNALAPPINSIGHTSNAME)"
appServicePlan: "$(INTERNALAPPSERVICEPLANPYTHONNAME)"
azureSubscription: "$(AZURESUBSCRIPTION)"
botPricingTier: $env:BOTPRICINGTIER
connectionName: $env:CONNECTIONNAME
dependsOn: "Prepare_PythonGroup"
keyVault: "$(INTERNALKEYVAULTNAME)"
projectTag: "$(INTERNALPROJECTTAG)"
resourceGroup: "$(INTERNALRESOURCEGROUPNAME)-Python"
resourceSuffix: "$(INTERNALRESOURCESUFFIX)"
sharedResourceGroup: "$(INTERNALSHAREDRESOURCEGROUPNAME)"
virtualNetwork: "$(INTERNALVIRTUALNETWORKNAME)"
bots:
- name: "bffnsimplehostbotpython"
type: "Host"
displayName: "Python Simple Host Bot"
appId: $(BFFNSIMPLEHOSTBOTPYTHONAPPID)
appSecret: $(BFFNSIMPLEHOSTBOTPYTHONAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/Python/SimpleHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryPythonHosts }}
version: ${{ parameters.dependenciesVersionPythonHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "37000"
command: "python app.py"
- name: "bffnechoskillbotpython"
type: "Skill"
displayName: "Python Echo Skill Bot"
appId: $(BFFNECHOSKILLBOTPYTHONAPPID)
appSecret: $(BFFNECHOSKILLBOTPYTHONAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/Python/EchoSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryPythonSkills }}
version: ${{ parameters.dependenciesVersionPythonSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "37400"
command: "python app.py"
- name: "bffnwaterfallhostbotpython"
type: "Host"
displayName: "Python Waterfall Host Bot"
appId: $(BFFNWATERFALLHOSTBOTPYTHONAPPID)
appSecret: $(BFFNWATERFALLHOSTBOTPYTHONAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/Python/WaterfallHostBot'
dependency:
registry: ${{ parameters.dependenciesRegistryPythonHosts }}
version: ${{ parameters.dependenciesVersionPythonHosts }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "37020"
command: "python app.py"
- name: "bffnwaterfallskillbotpython"
type: "Skill"
displayName: "Python Waterfall Skill Bot"
appId: $(BFFNWATERFALLSKILLBOTPYTHONAPPID)
appSecret: $(BFFNWATERFALLSKILLBOTPYTHONAPPSECRET)
appType: "MultiTenant"
project:
directory: 'Bots/Python/WaterfallSkillBot'
dependency:
registry: ${{ parameters.dependenciesRegistryPythonSkills }}
version: ${{ parameters.dependenciesVersionPythonSkills }}
container:
registry: "$(INTERNALCONTAINERREGISTRYNAME)"
port: "37420"
command: "python app.py"