Removing branch policy for one particular repo

Shyam Kumar 866 Reputation points
2025-05-21T05:21:10.93+00:00

We want to remove branch polices only for particular repo with out effecting other repos, is it possible ?

If yes how?

Please suggest

Azure DevOps
0 comments No comments
{count} votes

Accepted answer
  1. Durga Reshma Malthi 5,310 Reputation points Microsoft External Staff Moderator
    2025-05-22T08:12:43.8633333+00:00

    Hi Diptesh Kumar

    As discussed in the private messages, I found that you are facing the below error while updating the build policy.

    image (25)

    The associated build pipeline might have been deleted or renamed. If the validation policy is still referencing an old pipeline ID, it could trigger this error.

    Could you please follow the below steps to resolve this issue.

    1. If you are facing error related to build validation, then Navigate to the Azure Pipelines and check if pipeline 326 still exists. Use the search bar at the top and enter 326 right after definitionId= to locate the pipeline.
    2. If the pipeline doesn't exist, then try selecting a different build pipeline in the build policy. User's image
    3. Or You can click on 3 dots beside Financial Management-PR under Build Validation and delete the policy. User's image

    Hope this helps!

    Please Let me know if you have any queries.

    If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Abiola Akinbade 29,490 Reputation points Volunteer Moderator
    2025-05-21T07:47:12.7333333+00:00

    Yes it is, See:

    https://learn.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

  2. Durga Reshma Malthi 5,310 Reputation points Microsoft External Staff Moderator
    2025-05-21T11:16:03.0166667+00:00

    Hi Diptesh Kumar

    Yes, it is possible to remove branch policies for a specific repository in Azure DevOps without affecting other repositories.

    Go to Azure DevOps -> Organization Settings -> Repositories -> Select your Repository -> Policies Tab -> Branch Policies.

    User's image

    Select your required Branch -> If you want to remove the branch Policies, disable it by clicking the toggle button to Off.

    User's image

    Hope this helps!

    Please Let me know if you have any queries.

    If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.

    0 comments No comments

  3. Shyam Kumar 866 Reputation points
    2025-05-21T14:37:20.9566667+00:00

    Doing that highlighted setting to off is enough?

    0 comments No comments

  4. Durga Reshma Malthi 5,310 Reputation points Microsoft External Staff Moderator
    2025-05-21T16:51:08.38+00:00

    Yes Diptesh Kumar, it should be in OFF state. If you don't want to use it, then don't touch it. If you want to turn it on, press that button, and it will turn blue.

    If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.