Home > database >  There is no web app deployed when I create a Azure bot?
There is no web app deployed when I create a Azure bot?

Time:12-23

I follow with this document:enter image description here

enter image description here There is no web app in the source group.And I can not find any item about this at the app services page.

CodePudding user response:

As I already shared that first we should have resource group to create app service and azure bot registration. Follow the steps below:

Resource group:

enter image description here

App Service:

Once you have created your resource group go create resource and search for web app See the screenshot below:

enter image description here

Create the web app service. And this will be work as your bot backend service. If you see the below screenshot you can have a look URL which will be endpoint of your bot. Please copy it.

enter image description here

Azure Bot Registration:

Now go to Create resource once again and type Azure Bot create the bot. And then go to the configuration like below:

enter image description here

Note: You have copied the web app service URL last time. Paste that URL into the Messaging endpoint with adding https://yourAppServiceURL.azurewebsites.net/api/messages and check the Enable Streaming Endpoint and finally click on apply up to now we are done. But still our bot doesn't know anything what it will do since it has nothing at it's backend. Next steps we will publish our sample bot code on the app service we have created.

Deploy Bot Prject on app service:

From your IDE publish your bot source file. It would prompt you following page:

enter image description here

Select your Resource group and then select your App service then just finish. It should be like below :

enter image description here.

Now our Bot is good to work with.

Test On Web Chat:

Now go to your bot registration page and hit Test in Web Chat as you can see it as pro actively greeting me.

enter image description here

Hope above steps guided you accordingly.

  • Related