Create user story using Microsoft teams - azure

Is there a way to automatically create a User Story in Azure Boards, based on messages in a Microsoft Teams channel?
So, whenever any message is posted in Teams, a User Story should be created.

Yes,
first you'll need a bot that can be created using Microsoft Bot Framework.
https://learn.microsoft.com/en-us/azure/bot-service/channel-connect-teams?view=azure-bot-service-4.0#:~:text=To%20add%20the%20Microsoft%20Teams,Get%20bot%20embed%20code%20dialog.
Then, use the Azure Devops Rest API to create the user story:
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/create?view=azure-devops-rest-6.0
PS: note the ${type} in the url, it's where you set 'User Story'

Related

Microsoft Chat BOT with multiple BOTs integration

I am working on a requirement where we need to create a chat BOT application using Azure BOT service that takes input from the user and based on the response from the user, redirect the user to the chat bot of the particular department.
I would like some suggestions or recommendations on how this can be achieved.
The way to do this is through Bot Framework Skills. You can check for more information on https://learn.microsoft.com/en-us/azure/bot-service/skills-conceptual?view=azure-bot-service-4.0

How to make a Microsoft Teams call using azure logic-app

I am working on a requirement where I am using azure logic-app to create following flow.
Using azure logic-app, I have to create Microsoft Teams.
Add members to Microsoft Teams
Create a new Channel within newly created MS Teams.
Post a message into a channel.
It should call to all the members within the teams using "Meet Now" option in MS Team.
I am able to achieve all the above till 4th step but I am not getting any way to make a call to the members in MS team using "Meet Now" option in azure logic-app.
If anybody can suggest how to achieve the task mentioned in 5th point that would be very helpful.
For your scenario you can use deeplink to call to invoke audio only or audio-video calls to a single user or a group of users, by specifying the call type, as audio or av, and the participants.
https://teams.microsoft.com/l/call/0/0?users=<user1>,<user2>&withvideo=true
Please go through documentation for more info.

Dynamically change Microsoft Teams bot name and icon

We have a bot service running in MS Azure and a corresponding Teams app. This bot service is used by multiple customers. Requirement is to allow customers to change the bot name/icon that is shown in the Teams chat (please refer image below).
We can change the name and icon by changing it in the Teams App. However, this will require creating a separate Teams app for each customer. Is it possible to control this via the bot service code running in Azure? We want to do it programmatically based on logged-in user's domain. Is there anyway to do it?
Edit: Found a related post
Thanks
Vivek
This is not possible within a single bot - it's set at the level of the the bot registration, in Azure, and so can't be changed tenant by tenant in Teams, for example. You'd need to create a bot for every customer (tenant), or go with a generic name and image. You can of course customize the welcome message, responses from the bot, etc.

OAuth2 authentication for Microsoft Graph using service account credentials

I would like to create a webservice capable of automatically sending messages in Microsoft Teams. I tried authenticating as an application, but currently Microsoft does not support granting application permissions to send messages in Teams, so the only choice here is to authenticate using a service account with real credentials (Unless there is another way?). This method only specifies using user interaction to log in as a user.
I would like to use a service account teamchatbot#domain.com to authenticate with Microsoft Graph in order to send messages on Microsoft Teams. (similar to this but since I'm not accessing a resource it is a little different.) Is there a way I can silently obtain an access token on behalf of the service account in order to send messages?
It seems that you have a misunderstanding.
Your scene is actually the same as this post.
You should use Resource Owner Password Credentials to call Microsoft Graph API to send messages.
Based on permissions, you need the Group.ReadWrite.All delegated permission. So you need to add this permission into your Azure AD app firstly.
Don't forget to click on "Grant admin consent for {your tenant}" after you add this permission.
Then you can get an access token like this:
You can see that https://graph.microsoft.com/Group.ReadWrite.All has been included in the response.
Now you could use this access token to call POST /teams/{id}/channels/{id}/messages.
There are a few other ways I can think of.
1) One is that you can create a Bot using the Microsoft Bot Framework, and once that bot is installed to the particular team, it can send "pro-active" messages (i.e. not a message in response to a user's message, but rather whenever you need).
Essentially, when you bot is added to the team, you get access to a specific event in your bot (OnMembersAdded for a general bot, and there's now a new event just for Teams). See more on this in my answer on Detect bot application open event. In this event, you get the information you need for later, which you can store in a database or wherever, and then create the message as if it's your bot posting to the channel. You can see more on that at Programmatically sending a message to a bot in Microsoft Teams.
This option above is a lot of work, but useful if there's other functionality you want from a bot (e.g. the ability to receive messages from the users)
2) Another, and even more simple way, is to create an incoming webhook directly to the channel. Here's a post on doing this using PowerShell, so you can do that for simple testing and extrapolate from there for Node.
Of course, things like Flow (Power Automate) are an option too, but you're already writing code so one of the above is probably easier.
Hope that helps

Do Microsoft charge for a license when we add new Bot to Skype for Business?

I was trying to add a Chat Bot integrated with Knowledge Base to Skype For Business Channel.
I understand that, it will be added by the Tenant Administrator.
My question here is, as we are working on POC we need to understand that if we add any BOT, then it will be considered as a new User and incurr some license cost for that or it is just a Service User which will not incurr any cost?
I could not find more information on this. Can anybody please let me know the information for the same to proceed.
The costs can be split into two parts
user of your Azure Active Directory will cost you the same money like any other non-chatbot user. You'll of course need one user for each chatbot you may want to connect to your network.
your Azure Bot Service will be charged the same way like any non Skype for Business (S4B) chatbot - See here

Resources