April 2nd, 2025

TFVC Policies Storage Updates

Maria Chmyreva
Software Engineer

TFVC Check-In Policies

TFVC projects can have check-in policies such as Build (Require last build was successful), Work Item (Require associated work item), Changeset comments policy (Require users to add comment to their check-in), etc. We are changing the way we store these policies on the server. This change will slightly affect TFVC users since they would need to initiate migration process from their side.

Phase I – User opt-in (Apr 2025)

This is a phase in progress. We provided means for users to start their migration process. Migration from obsolete policies to active ones should be done by the project administrator.

Using Visual Studio

Warning: Please ensure you updated Visual Studio to the latest version before proceeding (VS 2022, VS 2019 and VS 2017 with minimal versions 17.14 Preview 3, 17.13.6, 17.12.7, 17.10.13, 17.8.20, 16.11.46, 15.9.72 are supporting the new policies).

To create new policies using Visual Studio administrator should open Settings -> Team Project -> Source Control -> Check-in Policy. Next they should add new policy (without “Obsolete” mark) with the same parameters as old one:

TFVC Check-in Policies Window

Custom Policies

If you are using custom implementation of Microsoft.TeamFoundationServer.ExtendedClient to communicate with server, please follow the migration guide.

Phase II – Disable saving (~ Aug 2025)

The next phase in adapting new policies is disabling creation of obsolete policies. We will proceed with this phase in August 2025.

When we proceed with Phase II, service (including the latest versions of supported Azure DevOps Servers) will return an exception on any attempt to save obsolete policy. This exception will ask you to create policy in the new format.

Reading of obsolete policies will still be available and therefore they will still be working. But to avoid any future interruption in the workflow, policy migration is strongly recommended.

Phase III – Full disabling (~ Sep 2025)

This is the last phase of Azure DevOps moving to the new format. Planned time for this phase is September 2025. During it we will return exception on any attempt to read obsolete policies from service (including Azure DevOps Servers). Exception will notify user that operation not possible due to usage of obsolete policies.

At this phase only new policies will be available and working. No migration will be possible and not migrated policies will be lost. So customers will need to re-create them from scratch.

Author

Maria Chmyreva
Software Engineer

I am working in Microsoft since 2022 on Azure DevOps team in Repositories area (Git, TFVC, PR Experience, etc.). I have a passion for quality of life features and reliable, scalable, understandable code.

4 comments

  • Anthony Hunter 5 days ago

    With this new format, will it be possible to extract the policy data? For some of the policies that have customized values, this would be very beneficial.

    • Maria ChmyrevaMicrosoft employee Author 4 days ago · Edited

      Hey! Forgive me my confusion, but you mean from database for Azure DevOps Server? If yes, then it will be a little bit easier since you will not need to decode binary information.

  • Kim Mørup · Edited

    I tried to upgrade, but the new Work Item Query Policy fails during check-in – complaining about a projectName being null
    (using VS2022 17.13.6)

    • Maria ChmyrevaMicrosoft employee Author

      Hello Kim, thank you for your comment! We already took note and looking into it, but meantime, could you please create a feedback ticket for VisualStudio on Developer Community so we would have a clear communication channel for this? Thank you!