Forum Discussion
Deploying bot channel registration New-AzResourceGroupDeployment CHANNEL_NOT_SUPPORTED
Hello,
I'm trying to automate bot creation on Azure using powershell.
I 'm able to create an Azure application using New-AzureADApplication command.
I'm also able to create an AzureBot using New-AzBotService command.
Now I'm struggling to add a new channel registration, the Microsoft Teams channel. The command New-AzResourceGroupDeployment command returns the following error (correlation ID : 3ca89268-5443-45f9-96e6-6f5cfd1a7e57)
PS C:\Users\XXXRoot> New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroup.ResourceGroupName -TemplateFile $PathTemplate
New-AzResourceGroupDeployment : 10:52:44 AM - The deployment 'ChannelTemplate' failed with error(s). Showing 1 out of 1 error(s).
Status Message: Channel is not supported (Code:CHANNEL_NOT_SUPPORTED)
CorrelationId: 3ca89268-5443-45f9-96e6-6f5cfd1a7e57
At line:1 char:1
+ New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroup.Resou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
DeploymentName : ChannelTemplate
ResourceGroupName : XXXPREPROD_group
ProvisioningState : Failed
Timestamp : 2021-11-25 9:52:41 AM
Mode : Incremental
TemplateLink :
Parameters :
Outputs :
DeploymentDebugLogLevel :
I didn't find anything on this particular error (CHANNEL_NOT_SUPPORTED).
Here is the template file I used :
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"condition": true,
"type": "Microsoft.BotService/botServices/channels",
"apiVersion": "2021-03-01",
"name": "Office_A_Handle/msteamschannel",
"location": "global",
"tags": {
},
"sku": {
"name": "F0"
},
"kind": "azurebot",
"properties": {
"channelName": "MsTeamsChannel",
"properties": {
"callingWebHook": "https://server:port/route",
"enableCalling": true,
"isEnabled": true
}
}
}
]
}
Can someone help me ? Not sure I understood everything about New-AzResourceGroupDeployment command.
Regards,
Hello,
In case anyone comes across this post, I've never found a solution to this issue.
I've used as a workaround Azure CLI to create the bot and the microsoft teams channelHope this helps someone 😉
David CHOLLET
- Mad_hatterBrass Contributor
Hello,
In case anyone comes across this post, I've never found a solution to this issue.
I've used as a workaround Azure CLI to create the bot and the microsoft teams channelHope this helps someone 😉
David CHOLLET