LightningStack575
LightningStack575

Reputation: 31

Azure Devops Pipeline Teams Integration: changing channel and setting up pipeline monitoring

I'm currently trying to figure out, how to send alerts for failed release pipeline to a specific MS Teams channel. I followed the following link and set up Azure Pipelines App in one of my MS Teams team: https://learn.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops

Nevertheless I could only select the genereal channel like myTeam > General but I want to move the bot to another monitoring channel (monitoring devops) inside of 'myTeam'.

It's unclear to me if the bot is automatically in all channels and I can just enter: @azure pipelines subscribe [pipeline url] into my monitoring channel or do I have to set it up differently? Since I'm in a productive environment, I'm not able to just test it. Therefore would like to clarify first before executing.

Further, I have clicked on the app in the general channel and opened it, set it up with my devops project but it doesn't show any pipelines. Do I lack permission or do I have to set it up in teams using the commands like @azure pipelines subscribe first?

Upvotes: 0

Views: 1327

Answers (1)

wade zhou - MSFT
wade zhou - MSFT

Reputation: 8468

To monitor the target release in specific channel, please follow below steps:

  1. Your teams account should be Project Administrator in target project as per the Prerequisites.

enter image description here

  1. When you setup, you can type the existing target channel so that it's not general.

enter image description here

  1. The release url you can get from devops release page:

enter image description here

Go to target team/channel, run command @azure pipelines subscribe https://dev.azure.com/myorg/myproject/_release?definitionId=123&view=mine&_a=releases. to monitor on target release(change the release info to yours).

enter image description here

It will monitor on release start, Release deployment approval pending, Release deployment completed event. If you would like to change the monitoring event, you can type @Azure Pipelines subscriptions in channel -> View all subscriptions -> remove or add new event.

enter image description here

You can only keep Release deployment completed event if you only would like to check the release result.

enter image description here

Further, I have clicked on the app in the general channel and opened it, set it up with my devops project but it doesn't show any pipelines. Do I lack permission or do I have to set it up in teams using the commands like @azure pipelines subscribe first?

Yes, your teams account should meet Prerequisites listed above, and you need to use @azure pipelines subscribe command in channel to tell teams which pipeline is monitoring.

Upvotes: 0

Related Questions