AZ-400 · Question #262
Hotspot Question Your company uses Azure DevOps for Git source control. You have a project in Azure DevOps named Contoso App that contains the following repositories: https://dev.azure.com/contoso/con
The correct answer is /azrepos: subscribe; : https://dev.azure.com/contoso/contoso-app. This question tests knowledge of integrating Azure DevOps with Slack using the Azure DevOps Slack app to receive pull request notifications across multiple repositories in a project.
Question
Exhibit
Answer Area
- /azrepossubscribefeedbacksigninsubscribesubscriptions
- https://dev.azure.com/contoso/contoso-apphttps://dev.azure.com/contoso/contoso-apphttps://dev.azure.com/contoso/contoso-app/core-apihttps://dev.azure.com/contoso/contoso-app/core-dbhttps://dev.azure.com/contoso/contoso-app/core-spa
Explanation
This question tests knowledge of integrating Azure DevOps with Slack using the Azure DevOps Slack app to receive pull request notifications across multiple repositories in a project.
Approach. To connect Azure DevOps to Slack, you must first subscribe to the Azure DevOps project using the command '/azdo subscribe https://dev.azure.com/contoso/contoso-app' at the project level - this subscribes the Slack channel to the entire Contoso App project. Then, to ensure pull request notifications are received for all repositories, you would use '/azdo subscribe https://dev.azure.com/contoso/contoso-app/core-api', '/azdo subscribe https://dev.azure.com/contoso/contoso-app/core-spa', and '/azdo subscribe https://dev.azure.com/contoso/contoso-app/core-db' for each repository individually, or manage filters using '/azdo subscriptions' to add pull request event filters. The key command structure is '/azdo subscribe [URL]' followed by the Azure DevOps project or repository URL, and then optionally '/azdo subscriptions' to customize which events (like pull requests created) trigger notifications.
Concept tested. Azure DevOps and Slack integration using the Azure DevOps app for Slack - specifically the '/azdo subscribe' command to link repositories or projects to Slack channels and configure pull request event notifications.
Reference. https://learn.microsoft.com/en-us/azure/devops/service-hooks/services/slack?view=azure-devops
Topics
Community Discussion
No community discussion yet for this question.
