I'm trying to automate the process of creation and deploy of chatbot applications using the Microsoft Bot Framework and the Azure Bot Service.
I have a custom template that speaks to a service of mine, and I just need to customize the Web.config file for each chatbot to be deployed. I also want to use the default.htm to host a basic web chat that uses the DirectLine secret of the deployed chatbot.
I was able to create a WebApp Chatbot application using the Azure CLI 2.0, as well as integrate that chatbot with the DirectLine channel. However I wasn't able to get the DirectLine key using the Azure CLI 2.0.
I used the following instructions to integrated the chatbot I created via CLI with the DirectLine channel:
az bot directline create --name
--resource-group
[--add-disabled {false, true}]
[--disablev1 {false, true}]
[--disablev3 {false, true}]
[--site-name]
However when I use the show command I don't get the secret that I need to add to the web chat in the default.htm file:
az bot directline show --name
--resource-group
Can I achieve this using the Azure CLI or the .NET SDK? I'm using the Azure CLI for testing, but in the end I want to go with the .NET SDK in order to create a REST web service that creates the chatbot (based on my custom template) and returns the URL to the caller. When the caller goes to the URL I want the default.htm to be hosting the webchat.