What should you do?

You have an Azure DevOps project that contains a release pipeline and a Git repository.

When a new code revision is committed to the repository, a build and release is triggered.

You need to ensure that release information for the pipeline is added automatically to the work items associated to the Get commit.

What should you do?
A . Modify the Integrations options for the pipeline.
B. Modify the post-deployment conditions for the last stage of the pipeline.
C. Add an agentless job to the pipeline.
D. Modify the service hooks for the project.

Answer: B

Explanation:

Service hooks in Azure DevOps allow you to trigger actions in other tools based on events that occur in your Azure DevOps project. To automatically add release information to work items associated with a Get commit, you would need to configure a service hook that listens for commit events in your Get repository, and then sends the release information to the appropriate work items.

Here’s the steps you can follow to set up a service hook for this purpose:

✑ In your Azure DevOps project, navigate to the project settings by clicking on the gear icon in the top right corner of the page.

✑ Select "Service Hooks" from the left-hand menu.

✑ Click on the "New Subscription" button to create a new service hook.

✑ In the "Event" drop-down menu, select "Code pushed" to trigger the service hook when a new code revision is committed to the repository.

✑ In the "Actions" section, select the action that you want to take place when the service hook is triggered. For example, you might use the "Link work items to commits" action to automatically associate work items with the relevant commits.

✑ Configure the remaining settings as needed, and then click on the "Create" button to create the service hook.

You can find more information on Service hooks in Azure DevOps by following this link https://docs.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops

Latest AZ-400 Dumps Valid Version with 289 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments