Skip to content

az bot directline create doesn't allow multiple sites #23793

@damaca

Description

@damaca

Related command

az bot directline create --name foo --resource-group bar -s Site1

Describe the bug
The azure cli create option for directline channel (az bot directline create ) just allow one site. In the web portal several can be added and the response object from the az bot directline show is even an array.
Running the command multiple times override the previous one.
The code just take one site as parameter

To Reproduce

az bot directline create --name foo --resource-group bar -s Site1

Expected behavior

Environment Summary

macOS-12.5-x86_64-i386-64bit, Darwin 21.6.0
Python 3.10.5
Installer: HOMEBREW

azure-cli 2.38.0 *

Extensions:
aks-preview 0.5.70

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Several sites can be used as command parameter:

az bot directline create --name foo --resource-group bar -s Site1 Site2

Or

az bot directline create --name foo --resource-group bar -s Site1 -s Site2

Additional context
Raised in old repository microsoft/botbuilder-tools#1404

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions