Azure / Azure/azure-cli

Can't Create the Azure Bot resource

Open
#28,587 2 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign Bot Services bug customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

I'm following the doc of "Provision and publish a bot" and in the step of "Create resources with ARM templates" I opened another doc "Use Azure CLI to create or update an Azure Bot resource" to follow but in the second doc the step "Create the Azure Bot resource" is giving errors.
I made a corebot on vs and hosting it locally on the emulator but Iam trying to deploy it in azure to connect it to another web application I made in vs by asp.net core mvc .

### Related command

az deployment group create --resource-group testbot --template-file D:\y4t2\GP2\CoreBot1\DeploymentTemplates\DeployUseExistResourceGroup\template-AzureBot-with-rg.json --parameters "@D:\y4t2\GP2\CoreBot1\DeploymentTemplates\DeployUseExistResourceGroup\parameters-for-template-AzureBot-with-rg.json"

### Errors

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/note I hide it /resourceGroups/testbot/providers/Microsoft.Resources/deployments/template-AzureBot-with-rg","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidBotData","message":"Bot is not valid. Errors: Display name is required. See https://docs.microsoft.com/azure/bot-service/bot-service-resources-bot-framework-faq?view=azure-bot-service-4.0 for detailed requirements."}]}}

### Issue script & Debug output

{
"code": "DeploymentFailed",
"target": "/subscriptions//resourceGroups/testbot/providers/Microsoft.Resources/deployments/template-AzureBot-with-rg",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "InvalidBotData",
"message": "Bot is not valid. Errors: Display name is required. See https://docs.microsoft.com/azure/bot-service/bot-service-resources-bot-framework-faq?view=azure-bot-service-4.0 for detailed requirements."
}
]
}

### Expected behavior

Create the Azure Bot resource

### Environment Summary

azure-cli 2.58.0

core 2.58.0
telemetry 1.1.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\DELL\.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.