-
Notifications
You must be signed in to change notification settings - Fork 484
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
Using botbuilder in combination with a .NET Core Azure Function #467
Comments
Good news: this is totally possible today! We're aware that we need to whip together some official docs/samples on Azure Function hosting (and maybe even a first class experience), but, for now, let me point you to this sample from @brandonh-msft where he has replicated the |
Also worth noting, the bot doesn't work live (at least on Skype) due to issues w/ the SDK. Or did you not observe the same problem, @drub0y? |
@brandonh-msft That's a fair point, that needs looking into still. I think the main point here is your sample clearly demonstrates a working integration of the v4 Bot Framework within an Azure Function. Right now the sample works great with the emulator for sure, so at least people can use the sample to start writing some code and we'll of course sort out whatever the internal issue is with integration with the actual Bot Service. |
TL;DR - Bottom line for now: non-authenticated emulator requests SHOULD work, anything authenticated WILL NOT work.Ok, just wanted to give you an update here.... First, I want you to see that it does work in an unauthenticated scenario. Point your bot emulator here at my deployed instance with no credentials and see it work for yourself: http://drmarsh-echobot-function.azurewebsites.net/api/messages Second, there is an actual bug with the code that I didn't notice because when you hit it directly as a "plain old" Azure Function with the emulator it's not an issue. Specifically the problem is that the header name it's using is wrong. It should not be So the real problem is, as soon as you start using real credentials against this thing you're going to run into an issue. The issue that I'm seeing when I debug is that the Azure Functions 2.0 runtime (which we know is beta... right?) is throwing a |
Yes the header name wasn't right; that had been resolved in all my deployments to Azure and still wasn't able to chat w/ the bot. The assembly resolution problems are well known by the fxns team and, due in part to these issues, a v1-based func isn't possible because they have a hard ref ( I have an idea on something that might solve this which I'm giving a shot now. |
No dice. Appears putting Bots on Azure Functions is blocked by Azure/azure-functions-host#992 as well. IMO fine to close this issue but up to the team. |
re: doing something like assembly bindings on Azure functions, you can try hooking the That approach has worked for the bot I have deployed as a v1 Azure Function. |
@brandonh-msft is it still the case that the framework v4 does not support authentication? I saw that that the Microsoft/botbuilder pages were all updated with information about the botbuilder v4 preview? |
@drub0y is closer to the work that would be necessary to fix this problem than I am. Any update we know of, Drew? cc @cleemullins, @tomlm |
All auth scenarios should work at this point using the latest framework bits from the repo. We just did some direct work on the security token validation path a week or so again in fact and validated several of these scenarios. @devedse, I just want to make sure I'm on the same page here: this thread was originally about hosting in Azure Functions... is that still the scenario you're working with? If so, I believe that this is still going to be an issue due to Azure/azure-functions-host#992. |
@drub0y , Good to hear that all Auth Scenario's should now work. Initially we were working on implementing the bot with Azure Functions, but have found on multiple places that Azure Functions are giving more issues then solutions when working with Bots. E.g. Skype Voice calling doesn't work, the binding redirects you're refering to, long startup times etc. |
@devedse on the topic of long startup times, a couple of things:
|
Closing as part of R10 triage. This now works with composer |
Unit tests & tightening up teams activity handler object types
Introduction
I'm currently working on building a bot service using the latest .NET Core technology. I would like to set this up using Azure Functions as they are pay per use instead of having to pay for the complete month.
They way this worked within the bot builder framework is that I would create a .NET Standard project which contained all the bot logic. The .NET Framework Azure Function would then call into this code and it would work fine 😄. However when I created a .NET Function to talk against the .NET Standard project I ran into DLL issues and ultimately found out that the issue was that the bot framework does not support .NET Core.
Issue
I then started migrating the code to the .NET Core version (this github) of the bot framework but I quickly ran into the issue that the new version of the bot framework requires a Startup.cs class, services, etc. which is all not available in .NET Core Azure Funcions.
Could someone provide a sample on how to do this? Or at least some guidance to help me find out where to start 😄?
The text was updated successfully, but these errors were encountered: