Azure pipeline with main branch is not updated due to branch policies are enabled is there any other way?

vikram mariyala 1 Reputation point

we are using azure classic pipeline with main branch. we are updating package.json file with main branch and we created git commit task but showing the error : main (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch - Here what i observed is, The main branch have the policies so its saying you must use PR to update this branch. and we tried PR task to add the pipeline but no luck bcz source and destination branch are same. its showing there is no commit. Please help me any other ways to update the main branch - thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,017 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,456 Reputation points

    Hi Vikram,

    Azure DevOps related questions are not supported on this forum. It's better to reach out to experts in a dedicated forum over here:

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    0 comments No comments