How do I migrate my bot to an Azure Bot Service? - botframework

Recently, we have got a notification on https://dev.botframework.com/bots portal which states:
With the launch of the new Azure Bot Service, we are migrating all bots to the new service by 3/31/2018
There's a migrate button against each bot (if you have many of them) which is supposed to do seamless migration for those whose Azure Subscription is associated with the same Microsoft Account as the one which was used to create a bot on http://dev.botframework.com/
My bots are associated with an X Microsoft Account and the Azure Subscription is with Y Microsoft Account.
Is there anyway to migrate? If yes then how.
Thanks

You can change the bot's owner/admin and migrate the bot by following these steps:
Log in to the Bot Portal with the account used to create/register the bot.
Navigate to the "My bots" page
Select your bot
Navigate to the "Settings" page, and scroll down to the "Admin" section.
Add the email address connected to your Azure subscription to the "Owners" list, and click "Save changes" button.
Log out of Bot Portal
Log in to Bot Portal using your Azure subscription account you added in Step 5.
Navigate to the "Settings" page and remove your old email address from the "Admin > Owners" field.
Click "Save changes"
Navigate to the "My bots" page view and click the "migrate" button.
Note: Currently only Bot Registrations are supported for migration, and will be migrated to the Azure product called "Bot Channels Registration".
For more information on bot migration, see:
https://learn.microsoft.com/en-us/Bot-Framework/bot-service-migrate-bot

Related

Refresh the microsoft teams chat with bot embedded code

I have created a bot using bot composer and I have generated bot embed URL. I have accessed the same URL in browser and it got opened successfully in Microsoft teams
Now when I have updated the bot and published in azure, I am not finding an option to refresh this same in Microsoft teams
Is there any way to refresh the session and start the chat again with new modified bot????
when you update the bot and publish it in azure, the bot ID and user Id will not change so, the chat id will be remains same in the backend and you can't refresh the chat window in teams. This is by design.

sending new messages to this bot has been disabled by your administrator in teams

I am unable to chat with teams bot i am getting message like "sending new messages to this bot has been disabled by your administrator in teams" instead of showing text box
I've also encountered my custom bot having the disabled presence, whilst the same bot on a different tenant had the available presence.
As suggested in the comments, you or your Teams admin need to check the box 'Allow interaction with custom apps':
Teams admin center
Team apps
Manage apps
Org-wide app settings
Check 'Allow interaction with custom apps'

Unable to click on Manage option of "Microsoft App ID" in Azure Bot channel registration

I have created a Azure Bot threw bot channel registration but when i click on Setting -> (Microsoft App ID) Manage link, it always show "Not Found" page.
can any one help to resolved this issue.
There is a bug that prevents MSA accounts from navigating to their App Registration from the bot settings blade if they didn't make their own app registration when creating the bot. I am working on a fix right now, but in the mean time you can go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Overview/appId/{insert app id here}/isMSAApp/true or https://apps.dev.microsoft.com/#/application/{insert app id here} to manage your app registration.
July 29th edit: A fix for this has been rolled out and it should be fixed for MSA accounts.

How to access the bot deployed from Microsoft Samples (bot-builder-samples)

I have created bots using the azure portal, which auto creates a bot app resource in azure. When I click on this resource via the portal, I can access the bot by opening the chat window and can try out the bot.
I also created bot using visual studio, published it to the azure web and then configured a 'bot channels registration' bot to use this published bot.
All good so far.
Now I am trying to go through the ready made Microsoft examples from: https://learn.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-samples?view=azure-bot-service-3.0
I opened the "Create new conversation" link from the above website (https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/core-CreateNewConversation). I scroll down and click on "Deploy to Azure" button and the deploy is successful. How do I access the bot now?
I have tried creating the 'bot channels registration' bot and setting the messaging endpoint to the https://DeployedExampleAzureWebsiteLink/api/messages. Now, when I go into this azure resource, and into the test chat window, my message does not get delivered to the bot, and same issue upon retry aswell.
How do I access this bot please?
When you click deploy to Azure you get an option to fill out the Microsoft App Id and Password.
You are supposed to enter the same App Id and Password you gave while registering the Bot in the Bot channel registration

Creating a chat connector for communicating with the Bot Framework Service

I am trying to implement a bot in my website using the botbuilder framework for node.js. The function builder.ChatConnector() get the parameters appId and appPassword, does any one knows where can i found these appId and appPassword? It isn't clear for me in the microsoft documentation. The function is shown above:
function builder.ChatConnect
BotFramework documentation
You can find this information when you create your bot in Azure Bot Service, or when you proceed to register your bot at the dev portal.
Here's a brief walkthrough for registering through the dev portal with the minimum requirements. You'll need to fill out the name, bot handle and description for the bot as indicated below:
After this, you can scroll down and click on the button that says "Create Microsoft App ID and password".
Once you click on the button you'll be taken to a page with your bot name, your newly-generated App ID, and another button that allows you "Generate a password to continue".
After you click the button a small window will pop up with your password which you need to keep track of as it is only shown once!
NOTE: For developing and testing using the Emulator, you don't need this information just yet. You only need the AppID and password when you are making your bot public facing/deploying it.
You need to register your bot in https://dev.botframework.com/ and there you will get those values. Check this article that explains how to do that.

Resources