title | description | ms.assetid | ms.technology | ms.topic | ms.author | author | monikerRange | ms.date |
---|---|---|---|---|---|---|---|---|
Integrate with service hooks | Azure DevOps Services |
Perform tasks with other services when events happen in Azure DevOps Services projects |
c0617128-b67c-4ec4-b1c9-e65e1b3ab82c |
devops-collab |
conceptual |
chcomley |
chcomley |
<= azure-devops |
11/19/2020 |
[!INCLUDE version-lt-eq-azure-devops]
Service hooks let you run tasks on other services when events happen in your Azure DevOps projects. For example, create a card in Trello when a work item is created or send a push notification to your team's mobile devices when a build fails. You can also use service hooks in custom apps and services as a more efficient way to drive activities when events happen in your projects.
Service hook publishers define a set of events. Subscriptions listen for the events and define actions to take based on the event. Subscriptions also target consumers, which are external services that can run their own actions, when an event occurs.
Note
For Azure DevOps Services connecting to endpoints for Service Hooks requires allowing IP ranges for inbound connection. For details, see Allowed address lists and network connections, IP addresses and range restrictions.
These services are available as the target of service hooks. To learn about others apps and services that integrate with Azure DevOps Services, visit the Visual Studio Marketplace
Pipelines | Collaborate | Customer support | Plan and track | Integrate |
---|---|---|---|---|
AppVeyor | Flowdock | UserVoice | Trello | Azure Service Bus |
Bamboo | HipChat (No longer supported) | Zendesk | Azure Storage | |
Jenkins | Hubot | Grafana | ||
MyGet | Office 365 | Web Hooks | ||
Slack | Slack | Slack | Zapier | |
Microsoft Teams | Microsoft Teams | Microsoft Teams | Datadog |
When you integrate one of these services with Azure DevOps Services, you have to create a new subscription. In many cases, you have to do some work in the other service, too. For specific details, look at the information on the service that you're interested in.
::: moniker range=">= azure-devops-2019"
-
Open the admin page for a project in web access.
-
Create a subscription by running the wizard.
-
Select the service you want to integrate with.
:::image type="content" source="./media/selectservice.png" alt-text="Select the service to integrate":::
-
Select the event to trigger on and any filters (if applicable).
:::image type="content" source="./media/Trello_wizard_Event.png" alt-text="Select the event to trigger on and any filters":::
-
Select an action to run on the target service.
[!NOTE] The list of available actions may be limited based on the event type you selected.
:::image type="content" source="./media/Trello_wizard_Action.png" alt-text="Select an action for the target service":::
-
To confirm the settings are correct, test the subscription and then finish the wizard.
:::image type="content" source="./media/test1.png" alt-text="Test notification 1 for Azure DevOps Server 2019, 2020, and Azure DevOps Services":::
:::image type="content" source="./media/test2.png" alt-text="Test notification 2 for Azure DevOps Server 2019, 2020, and Azure DevOps Services":::
::: moniker-end
::: moniker range="tfs-2018"
-
Open the admin page for a project in web access.
:::image type="content" source="./media/openadmin.png" alt-text="Screenshot of the admin page.":::
-
Create a subscription by running the wizard.
:::image type="content" source="./media/createfirst.png" alt-text="Screenshot of highlighted box, Create subscription, to select to run the subscription wizard.":::
-
Select the service you want to integrate with.
:::image type="content" source="./media/selectservice.png" alt-text="Select the service to integrate":::
-
Select the event to trigger on and any filters (if applicable).
:::image type="content" source="./media/Trello_wizard_Event.png" alt-text="Select the event to trigger on and select any desired filters":::
-
Select an action to run on the target service.
[!NOTE] The list of available actions may be limited based on the event type you selected.
:::image type="content" source="./media/Trello_wizard_Action.png" alt-text="Select an action to perform on the target service":::
-
To confirm the settings are correct, test the subscription and then finish the wizard.
:::image type="content" source="./media/test1.png" alt-text="Test notification 1":::
:::image type="content" source="./media/test2.png" alt-text="Test notification 2":::
::: moniker-end
A: Edit subscriptions and View subscriptions. By default, only project administrators have these permissions. To grant them to other users directly, you can use the command line tool or the Security REST API.
Q: What are the security implications of granting Edit subscriptions and View subscriptions permissions?
A: The user with these permissions can see all subscriptions created in the project and the notification history for those subscriptions. That user can then create any type of service hook subscription in that project. If the user sets up a subscription for a resource that they don't otherwise have permission to access, the subscription won't get triggered.
For example: if I don't have access to work items in area path XYZ, and I set up a subscription to the work item update events, I won't get notifications for updates to work items in area path XYZ. However, if another user who does have access to the work items in area path XYZ is receiving those "work item update" events, then I could see the notification history of that other user's events, which includes work item data that I don't otherwise have access to.
A: Yes. For more information, see Create a service hooks subscription.
A: Yes. You can revoke authorizations from your profile.
-
Go to your profile page from https://visualstudio.com.
Make sure you start from the Visual Studio site (https://visualstudio.com) instead of your organization (
https://dev.azure.com/{orgName}
) because, right now, your profile accessed from your organization takes you to the wrong implementation of the authorizations management feature. -
Manage your authorizations.
-
Revoke any authorizations you no longer want to allow.
A: Atlassian officially dropped support for HipChat. See more on that announcement here.