38 lines
1011 B
Bicep
38 lines
1011 B
Bicep
param uniqueId string
|
|
param prefix string
|
|
param messagesEndpoint string
|
|
param botAppId string
|
|
param botTenantId string
|
|
|
|
resource bot 'Microsoft.BotService/botServices@2023-09-15-preview' = {
|
|
name: '${prefix}bot${uniqueId}'
|
|
location: 'global'
|
|
sku: {
|
|
name: 'F0'
|
|
}
|
|
kind: 'azurebot'
|
|
properties: {
|
|
iconUrl: 'https://docs.botframework.com/static/devportal/client/images/bot-framework-default.png'
|
|
displayName: '${prefix}bot${uniqueId}'
|
|
endpoint: messagesEndpoint
|
|
description: 'Bot created by Bicep'
|
|
publicNetworkAccess: 'Enabled'
|
|
msaAppId: botAppId
|
|
msaAppTenantId: botTenantId
|
|
msaAppType: 'SingleTenant'
|
|
msaAppMSIResourceId: null
|
|
schemaTransformationVersion: '1.3'
|
|
isStreamingSupported: false
|
|
}
|
|
}
|
|
|
|
// Connect the bot service to Microsoft Teams
|
|
resource botServiceMsTeamsChannel 'Microsoft.BotService/botServices/channels@2021-03-01' = {
|
|
parent: bot
|
|
location: 'global'
|
|
name: 'MsTeamsChannel'
|
|
properties: {
|
|
channelName: 'MsTeamsChannel'
|
|
}
|
|
}
|