web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Move changesets from branch X to branch Y - TFVC

(0) ShareShare
ReportReport
Posted on by 33

Hello, I wonder if in Azure DevOps there is a way to move a changeset checked into a repo to another branch.
We have a few branches and sometimes we need to quickly move a specific changeset to another branch without moving all changesets. I know that this is possible to do in Visual Studio, but I wonder if it is also possible to run a PowerShell command in a pipeline using “tf merge” on a MS-hosted agent.

I have already tried to run a pipeline by using “tf merge”, but I get an error: TF30063: You are not authorized to access https://myorganization.visualstudio.com/. Running Copy-Item works fine and permissions are checked. (Permission check-in, merge are allow).

Do you have any idea if there is possible to move changesets with TF.EXE by Azure Pipeline?

Categories:
  • Anton Venter Profile Picture
    21,211 Super User 2026 Season 2 on at

    @LC-27101439-0 

     

    Perhaps you have read it already, but here is the official TF.exe commands documentation, it might help you achieve your goal.

     

    Use Team Foundation version control commands

    https://learn.microsoft.com/en-us/azure/devops/repos/tfvc/use-team-foundation-version-control-commands?view=azure-devops

     

  • Subra Profile Picture
    2,238 Super User 2026 Season 2 on at

    Hi @LC-27101439-0 

    Could you please let me know is there any specific reason why you are looking for a powershell comment to move your changes from one branch to another branch. Since Using VS is the easiet approach to move the changeset to different branch.

  • Martin Dráb Profile Picture
    240,728 Most Valuable Professional on at

    All right, so you're saying that you have two directly related branches and you want to merge a specific changeset. You're able to do it manually in Visual Studio, but when you try to do it through Powershell in a an Azure DevOps pipeline, you're getting an authorization error. Is that correct?

     

    I suggest you test your process in smaller pieces. Forgot the pipeline for now and test whether you're able to do it from your machine.

     

    If not, share your Powershell code with us.

     

    If it succeeds, you'll see that your actual question changes. You won't ask anymore how to merge changesets, because you'll know that. Your question will be how to do the authorization from Azure DevOps pipelines. Then tell us how you're doing the call there.

  • LC-27101439-0 Profile Picture
    33 on at

    @Subra main reason is make automation in Azure Devops becouse to do it manually by Visual Studio I have to run dev virtual machine then swich on correct workspace and find changest then marge, in Azure Devops I see description of task and it is just faster then starting virtual machine and start the process.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 415 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 374

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 365 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans