Teams Toolkit - Failed to provision 'App Service plan' - microsoft-teams

I'm trying to provision my bot to Azure but I'm getting the below error:
[Error] - code:Solution.ProvisionFailure, message: Failed to provision 'App Service plan'. Suggestions: Please check log in output channel and try to fix this issue.
No details in the output channel.
Any idea why that's happening? I just used the default project configuration, didn't change a thing.
Thanks

I am the developer of Teams Toolkit in Microsoft, thanks for trying our new Toolkit. According to this tutorial https://learn.microsoft.com/en-us/microsoftteams/platform/get-started/first-app-bot?tabs=vscode#deploy-your-app-to-azure, when you provision to Azure resource, have you been asked to login your Azure account by browser? Have you ever seen the confirm window that saying "The Teams Toolkit will provision resources under xxx (Azure account) with xxx (subscription)"? If yes, please check if the Azure account and subscription is correct.
One update is that in Teams Toolkit v2.2.0, we add one feature to provide more error details. If you upgrade the VSCode extension, you can check the OUTPUT channel (select "Teams Toolkit" channel) to see more details as below.

Related

MS Teams integration - tenant administrator permission issue

We have recently integrated MS teams API so that clients can directly schedule their meetings from our dashboard. The integration worked fine and everything worked when we tested internally. Now however when clients tried to use this integration, they are facing issues.
When they are taken to authorization screen and they approve the request, it says "Sorry, but we're having trouble with signing you in"
and the Troubleshooting details says:
Application with identifier was not found in the director. This can happen if the application has not been installed by the administrator of the tenant...
I've attached screenshot here. The permission/scope we are using are: OnlineMeetings.ReadWrite, offline_access
I already asked this question on MS forum but didn't get any answer there yet. Adding link here: https://learn.microsoft.com/en-us/answers/questions/339273/ms-teams-integration-tenant-administrator-permissi.html
To access the application for other organisation, you need to enable the multi tenant configuration in application registration.You need to enable the multi tenant in azure where you have registered your application. Please check this document for more info.

Cortana channel cannot be added

I am having an issue after migrating my Bot to Azure. I have a Bot that is up and running on Cortana Chanel as well. I previously published it only for me ‘Deployed to self’ so I can see it on my Cortana Canvas but now I want to publish it for group of people but I am unable to do it from Azure portal. Whenever I click on ‘Edit’ button of Cortana Channel through Azure Portal following error prompts me:
As per the error they are expecting me to use my Microsoft Personal Account (i.e. Hotmail or Outlook Account) but unfortunately in my case it’s not possible. I have azure subscriptions in my office account not in my personal account that’s why I migrated all my bots to my office account and now trying to configure it for other peoples (i.e. Deployment for Group) but because of the above error I could not do it. As I know previously it was very straight forward all we have to go to ‘Cortana Dashboard’ and there is an option of deployment by which we can easily publish our skill sets to the group of people by just adding there email address.
Could you please help me how can I resolve this issue? All I want to use my azure account (i.e. my company account) to configure the Cortana channel and other things like Deployment to Group of peoples.

Deleting a "Zombie" bot from the Azure Portal

I created a bot via botframework.com. I no longer needed it and deleted it, also via botframework.com. It now still shows up in the Azure portal, but I'm unable to view it's details to delete it. (The bot in question is circled red in the screenshot).
I'm assume this is because it doesn't really exist anymore.
Below are attached Screenshots of my botframework view and my azure portal. I've censored some identifying information.
You can use the Azure CLI:
az resource delete --ids /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/myresourcegroup/providers/Microsoft.Web/sites/mybot
This is the answer I received from the Azure Support Team, which worked for me:
• Open Azure PowerShell, and run the following command. In case you have not configured Azure PowerShell then you can follow the doc.
Login-AzureRmAccount
Select-AzureRmSubscription -SubscriptionId "<your subscription id>"
Remove-AzureRmWebApp -Name "<name of your bot>" -ResourceGroupName "<name of your resourcegroup>" -Force

Visual Studio online insufficient privileges when creating a release definition

I'm trying to create a release definition in Visual Studio Online with the task "Deploy Azure App Service".
When I try to authorize for the subscriptions it gives this error message below.
Error(s):
Insufficient privileges to complete the operation. For troubleshooting refer to link.
The content of the link they provide doesn't seem to help me.
I already tried this using Azure Service Administrator account.
Why is this happening? What are the kind of permissions i need for doing this?
The user must be a member of Global Admin role in the directory.
On the other hand, you may configure it manually with this PowerShell script.
More information, you can refer to Automating Azure Resource Group deployment using a Service Principal in Visual Studio Online: Build/Release Management (Manual configuration section)
Download & run this PowerShell script in an Azure Powershell window to
generate required data for Service Principal based Azure service
connection. Running this script would prompt you for:
The name of your Azure Subscription name
A password that you would like to set for the Service Principal that is going to be created
Note: the script has been tested with Azure PowerShell version 1.0.2.
Once successful, the script would output the following details for the
Azure Service Endpoint.
Connection Name
Subscription Id
Subscription Name
Service Principal Client Id
Service Principal key
Tenant Id

How do you connect a MS botframework bot to Skype for Business

I published a bot built using the bot framework but I can't figure out how you'd connect it to Skype for Business on an internal Corporate network.
Does any know what the process is?
----- Ed
Skype for Business is not yet supported.
I think he means is there a guide to building a bot for "Skype For Business". I'm looking to build one for our company as well.
FYI - Skype for Business was announced as a new channel today on Build 2017 :)
right now, SFB is already supported by Bot Framework. Please, go to the portal https://dev.botframework.com, select your bot, and look into the channels link. You'll see how to enable & configure your bot to be used within SFB.
Please, feel free to ask me if you have questions
I have successfully deployed my Bot to SFB referring the below link
Bot deployment to Skype For Business
But now, things are little changes, below are the high level steps
Deploy your bot to Azure App service Plan
integrate with SFB channel, azure portal will give you channel specific details. Click on Edit link to get the details on how to integrate your bot.
Azure Portal Bot Channels
Click on "Learn How"
Learn how to integrate Bot to SFB
Once Channel is added, you would need a tenant administrator who can do powershell scripting.
What you need to provide is the default URL of your bot , you can give WebChat URL (which is your default channel), Microsoft Application ID etc.
And then give a nice name to your bot.
After the integration your bot will be active after 24 hours.

Resources