Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample bot for deploying in Azure function using http trigger #3016

Open
wonboyn opened this issue Jan 10, 2021 · 3 comments
Open

Sample bot for deploying in Azure function using http trigger #3016

wonboyn opened this issue Jan 10, 2021 · 3 comments
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@wonboyn
Copy link

wonboyn commented Jan 10, 2021

Is your feature request related to a problem? Please describe.
I'm interested in deploying bots as functions rather than as a web app. I've not been able to find an up to date examples/tutorial on what needs to be done to trigger the required botframework adapter/controller etc from an Azure function HTTP trigger.

Describe the solution you'd like
A sample dotnet core bot (eg echo bot) based on v4 of the botframework sdk that can be deployed as an Azure function using the http trigger

Describe alternatives you've considered
I've found a couple of examples (eg this & this) but they are incomplete or refer to older versions of the botframework sdk

@wonboyn wonboyn added feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jan 10, 2021
@stevkan stevkan added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. labels Jan 11, 2021
@wilsoncg
Copy link

+1
Yes please, I'd like to see a sample too.
The closest I have found is this, however it uses AuthorizationLevel.Anonymous & BotFrameworkAdapter using an alpha version of the SDK, but I'd like to see samples using AuthorizationLevel.Function which according to this comment, all auth scenarios are fully supported.

@wilsoncg
Copy link

@wonboyn after a lot of fiddling around, I have a working bot written in C# (dotnetcoreapp3.1). It's running as an Azure function (consumption model), with an HTTP trigger, using BotFramework SDK v4. It's also connected to LUIS and twitter API.

https://github.com/wilsoncg/bot
Feel free to have a look and use as a reference.

@wonboyn
Copy link
Author

wonboyn commented Jan 18, 2021

@wilsoncg - Thanks for that. I'll check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Issue is created by anyone that is not a collaborator in the repository. feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

3 participants