makeporngreatagain.pro
yeahporn.top
hd xxx

Practice Test 4 | Designing And Implementing Microsoft DevOps Solutions | AZ-400 | Dumps | Mock Test

4,209

You are configuring a branch policy to ensure high-quality code in your Repo by showing requirements for all pull requests.

.

You plan to use Azure Functions to create a custom branch policy for the master branch. You need to ensure that the function inspects the pull request and posts the status to the pull request.

 

Which of the two settings are required in Azure DevOps? Each correct answer presents a part of the solution.

A. Add a status policy under branch policies of the master branch.
B. Configure a service hook for pull request events.
C. Add a build policy under branch policies of the master branch.
D. Create a personal access token with the required scope.

Answer: B & D

  • Option A is incorrect. A status policy is used for configuring a branch policy for an external service, so that the service can post the status message to pull requests. In this case, the Azure function code can take care of displaying the message to the pull requests if it is authenticated by DevOps. Communication is set up through a service hook. So, this step is not essential.
  • Option B is correct. To receive an alert when new pull requests are created or to post the status back to the pull request, you need to set up a service hook for pull request events. Service hooks are Azure DevOps Services feature that can alert external services when certain events occur. To receive POST requests when pull requests change, you need to provide the service hook with the Azure function URL.
  • Option C is incorrect. A build policy is required to set up for the code by pre-merging and building pull request changes. Using this, you can mandate an automatic build whenever the source branch is updated. You can also protect the master branch by specifying a policy requirement so that build must succeed to complete pull requests. For setting up a custom branch policy using Azure functions, this is not essential.
  • Option D is correct. To get permission to change pull request status, the azure function must be authenticated with Azure DevOps using a personal access token (PAT). Also, the PAT requires vso.code_status cope, which you can grant by selecting Code(status) scope on the Create a personal access token page.
  • Reference Link: For more information on custom branch policies, please refer to the below link- https://docs.microsoft.com/en-us/azure/devops/repos/git/create-pr-status-server-with-azure-functions?view=azure-devops

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.