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:
App Service:
Once you have created your resource group
go create resource
and search for web app
See the screenshot below:
Create the
web app service
. And this will be work as your botbackend
service. If you see the below screenshot you can have a lookURL
which will be endpoint of your bot. Please copy it.
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:
Note:
You have copied theweb app service URL
last time. Paste thatURL
into theMessaging endpoint
with addinghttps://yourAppServiceURL.azurewebsites.net/api/messages
and check theEnable Streaming Endpoint
and finally click onapply
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 theapp service
we have created.
Deploy Bot Prject on app service:
From your IDE
publish your bot source file. It would prompt you following page:
Select your Resource group
and then select your App service
then just finish.
It should be like below :
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.
Hope above steps guided you accordingly.