Question: Need to create a CICD pipeline with yaml using TFVC repository.

Answer: 
See this doc: [Two types of repositories the pipelines support](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema#type).

[![enter image description here](https://i.stack.imgur.com/OqJD4.png)](https://i.stack.imgur.com/OqJD4.png)

Until now, YAML only supports repositories of **git** type, and we haven't expanded the feature and YAML grammar to support YAML for TFVC repository.

The only workaround is to migrate your repository from TFVC to Git, but I cannot be sure whether it is feasible for you to migrate, especially if your repository is a bit old. If repos are a little old, migration will make it lose much history including old commits and builds.

On our official suggestion forum, there are many users that have the same demand as you: [Make YAML support TFVC](https://developercommunity.visualstudio.com/idea/635044/make-yaml-support-tfvc.html). You can vote and comment with your demand there. Our Product Group team and corresponding PMs will review these suggestions and consider take it into the development plan to bring a more flexible experience for the user.
YAML pipelines are only supported with GIT repositories, although this is not well documented by Microsoft. You will not be able to use YAML to build your pipelines in TFVC. While its not a option for everyone, you could look into converting your TFVC project into a GIT repository.

[Azure DevOps TFVC to GIT Conversion](https://learn.microsoft.com/en-us/azure/devops/repos/git/import-from-TFVC?view=azure-devops)