TFS 2018 upgarde to AzureDevOps Services

Shane Hiller 20 Reputation points
2024-08-08T15:11:35.8+00:00

Can I migrate directly from TFS 2018 to AzureDevOps Services or do I need to upgrade to Azure DevOps Server first

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

2 answers

Sort by: Most helpful
  1. Michael Taylor 53,726 Reputation points
    2024-08-08T15:39:22.43+00:00

    Azure DevOps doesn't use the same database system as TFS/Azure DevOps Server so the database migration tools aren't useful. As discussed here there are 3 approaches to migration.

    1. Manual - Versions don't matter because you're going to manually do all the work. Honestly I cannot think of a case where this makes sense.
    2. Data Migration Tool - This is the "preferred" approach as it'll migrate your data but it only works with a single DevOps collection and you must be running within the latest 2 versions of DevOps, TFS is not supported. So you'd need to update your SQL database server (because it has requirements for newer versions) + TFS to Azure DevOps Server and then you could migrate. If you have a single collection then this might be doable but upgrading all that software (+ licensing) just to move to DevOps seems overkill.
    3. API - This is the harder approach but gives you absolute control over what to migrate and how. Furthermore it doesn't matter what version of TFS you're running because you're using APIs to migrate data anyway. This has the least setup cost from your existing system but migrating data using the API is very time consuming to configure and can be error prone. Fortunately there are a lot of resources online where people have shared scripts and code to do it. Just google for migrating to Azure DevOps.

    This is the approach we took when we migrated our Team Project-based TFS instance to Azure DevOps 7 years ago. Of course things have changed and you may be using Git in your TFS which is easier to migrate. I had written a series of blog articles about it but that site is no longer available. Nevertheless here is the code that I used to do the migration. Feel free to copy and adapt it to your needs. It migrates: all active work items and relationships, all code, all users, all build definitions, all queries. It is configurable so you can select to filter out some things.

    0 comments No comments

  2. ShaktiSingh-MSFT 15,056 Reputation points
    2024-08-09T04:00:27.35+00:00

    Hi Shane Hiller,

    Welcome to the MS Q&A platform.

    The query posted by you is not supported in the Q&A forum. I would request you post your query in the Azure DevOps forum

    This will assist you with a faster reply to your query.

    Hope this will help.

    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.