poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Update Help - Problem regaring the Teams Backend Help, and az cli default behavior regarding function creation #151

Closed LxLeChat closed 5 years ago

LxLeChat commented 5 years ago

Update Help - Problem regaring the Teams Backend Help

Context

I was trying to create a Teams Backend, following your documentation. Everything was working fine, until the "Azure Function App" part. The creation did work, but as i was naviguating inside the azure portal to the newly created function, an error was showing with the following message :

Function (TeamsWebhook) Error: The binding type(s) 'serviceBus' are not registered. Please ensure the type is correct and the binding extension is installed.

As you explained to me, the issue is because, az cli, now create azure function in version 2 by default.

Maybe you need, to integrate this line az functionapp config appsettings set --name <function_app> --resource-group <my_resource_group> --settings FUNCTIONS_EXTENSION_VERSION="~1" or maybe it's possible to directly pass this FUNCTIONS_EXTENSION_VERSION parameter directly at the creation of function app.

Thank you again!

devblackops commented 5 years ago

@LxLeChat In commit https://github.com/poshbotio/PoshBot/commit/10196455de817997af37f2879ed79d9bb6b881d5 I updated the Teams setup doc to include a section on making sure the Azure Function is v1.

This is also reflected in RTD. http://docs.poshbot.io/en/latest/guides/backends/setup-teams-backend/#azure-function