How to deploy azure bot using bot frame work composer? - azure

I have created an azure bot using Bot framework composer. When I tried to deploy the bot in azure I ran Into an issue {"name":"CREATE_LUIS_AUTHORING_RESOURCE_ERROR","message":"Error - The subscription is not registered to use namespace 'Microsoft.CognitiveServices'. See https://aka.ms/rps-not-found for how to register subscriptions.","stack":"Error\n at new CustomizeError (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/dist/extension.js:269072:25)\n at createCustomizeError (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/dist/extension.js:269077:10)\n at AzureResourceMananger.deployLuisAuthoringResource (/Applications/Bot Framework Composer.app/Contents/Resources/app.asar.unpacked/extensions/azurePublish/dist/extension.js:269865:13)"}. See provision.Azure Bot.log in your bot folder
What should I do to deploy this bot in azure?

To overcome this issue we need to select an S1 subscription while creating an azure bot from pricing section.

Related

Is it possible to create a MS Teams App incl. messaging extension without an Azure Bot?

I am building a Teams App which uses a search based messaging extension. As far as I understand, I need a bot for this, because the bot is basically posting the adaptive card created from the data on my external webapp to the chat.
Is it possible to create or host a bot somewhere else than in Azure? I do not have an Azure subscription. If so, how would I go about using a different Bot for my Teams App?
Thanks for helping in advance!
Teams bots rely on the underlying Microsoft Bot Framework - the same engine for building any kinds of bots in the Microsoft ecosystem (e.g. slack or web or facebook bots). The only way to register those bots in MS Bot Framework is, yes, via the Azure portal. However, you don't need to HOST your bot in Azure - the physical web endpoint can live anywhere that's publicly httpS addressable (e.g. AWS), as long as the registration for the bot is in Azure.
yes, you can create the Bot framework locally and run it using Visual Studio.
To debug Bot locally in teams you need to use a tunneling service like ngrok.
To install ngrok run the following command.
ngrok http <port> -host-header=localhost:<port>
Here is document related Bot framework running locally and the installation steps for ngrok.

What is the difference between Web App Bot and Azure Bot

Bot Framework SDK documentation says that Web App Bot is deprecated. But there is no information about the difference between development with Azure Bot and (deprecated) Web App Bot. What exact changes should be done if we migrate form one service (Web App Bot) to another (Azure Bot)?
In regards of other contributor's answer, I think main concept and
queries has not explained accordingly, so I felt it requires more
explanation in addition to clear the OP's main concern.
Questions: But there is no information about the difference between development with Azure Bot and (deprecated) Web App Bot.
The Bot Service behind Azure Bot and Web App Bot/Bot Channels Registration is the same; the change is in how the resources are
created that you use in your bot such as web apps, language
understanding, and more.
Rather than the one size fits all templates that the Web App Bot used,
Bot Framework Composer can be used to create resources for the Bot
with much more flexibility than the Web App Bot templates allowed.
Bot Channels Registration and Azure Bot are basically the same
capabilities renamed. The UX is slightly different in the Azure Portal
to help customers connect to the Bot Framework Composer.
Its clearly documented here in the official document you can get here
Questions: What exact changes should be done if we migrate form one service (Web App Bot) to another (Azure Bot)?
Currently migration from Web App BottoAzure Bot isn't supported.
If your Web App Bot isn't being used in production, you can delete
your old Web App Bot resource and reuse the bot name and app ID in a
new bot resource (after some time for the old record to get deleted).
The new Azure Bot is designed around creating your bot using
Composer, Bot Framework SDK, and so the gains from such a migration
would be minimal. You can get the official explanation here
Note:
Now you might be wondering, what about your existing Web app bot. Your bot and other resources will continue to work without any problem and you don't need to migrate your old web app bot in this aspect.
One question may arise,then why its been depricated or no longer be used?
The answer would be, Functionally though Azure Bot, Web App Bot, and
Bot Channels Registration all utilize the Bot Service in the same way
"under the hood". The Azure Bot path is easier, and more
configurable for developers in comparison of Web app bot
Hope above explanation will redeem your concern.
The Azure Bot is like the Bot Channel Registration. It is a global resource that identifies your bot to toher Azure resources and contains configurations and settings for the bot's external messaging endpoint, channels (Teams, Web Chat, Email, etc.), Exposing APIs, OAuth settings, and more.
To actually host the bot, you would use an Azure App Service. You would create one during the deployment process.
As the stated in the linked docs, existing resources will continue to work. Note that the docs specify that migration is not supported. Moving forward, when you build a new bot, you should use a combination of an Azure Bot for identity and configuration and an App Service to host and run the bot.

Is Microsoft Bot Framework in Teams free with my own endpoint?

I would like to understand how payments work as far as Microsoft Bot Framework is concerned.
This is my scenario: In Visual Studio Code I wrote an bot app using Microsoft Teams Toolkit to use it as a chatbot in Microsoft Teams. My company has an Azure Active Directory subscription, so my bot app appeared there. This app communicates with an endpoint which is NOT hosted on Azure.
So my question is - will it generate any extra costs? Should I worry about this 10000 messages per month limit?
https://azure.microsoft.com/en-us/pricing/details/bot-services/
As I understand I'm not using Azure Bot Services as I host my endpoint and I'm taking care of the logic, am I right?
My endpoint is written in .Net Core using Bot Framework SDK. So I use their classes and also MicrosoftAppId and MicrosoftAppPassword is also sent to the endpoint (obligatory to use with Teams).
Thanks for clearing it for me.
You can see in the link that the limit only applies to premium channels. Your Teams bot should be fine.

Bot service fails with status code:Forbidden

Looks like BOTS which are migrated to Azure as (Bot Channels Registration) are not working. I have hosted them on Azure app service and I see Forbidden while accessing from Cortana. However, there is no trace of error while calling bot from MS team. If I change the messaging endpoint to local ngrok I can work with BOT.
I see the following message in Bot Channels Registration in azure portal.
This bot is migrated from the old Azure Bot Service. You can rollback the migration in order to have access to your old bot before 03/31/2018. After 03/31/2018, the old service will be deprecated.
Is meaning of, old service will be deprecated as if Bot still exist on portal https://dev.botframework.com/bots it will be retired? Then, in that case, Bot Channels Registration (migrated) Bot should work.
Any thoughts on why this started happing since last 2 days?
SDK Platform: Node.js
SDK Version: V3
Active Channels: MS Teams, Cortana
Deployment Environment: Azure App Service

Issue:Test In Web Chat in Azure Bot Service

I am working on Microsoft Bot Framework, I am created the bot through Azure Bot Service in Azure Portal. When I am running my bot application in local emulator its working fine after that published into Azure Bot service.
Here my issue is whenever to test my application in in Azure Portal at Test In Web Chat option the test window will showing like this below.
Added the same bot to Skype channel there also I am not getting any response.
How can I resolve the problem?
Please check your MicrosoftAppID and MicrosoftAppPassword are correctly mentioned in both your BotApplication as well as in Azure Bot Service. Also do check if the same is deployed properly and the MessagingEndpoint is correctly mentioned.
If this was just an issue with the channel your Test in WebChat could have worked properly.
From my experience, it is happen to me with the same situation. I think you select publish as Website. You should select publish as Deployment Script.

Resources