Creating an Azure Devops pipeline from terrafrom

I have been looking on the internet to create an Azure DevOps pipeline from terraform. But I couldn’t find any resources to create a pipeline. I was only able to find some resources to create a git repo. My idea is to use terraform to create a project, and under the project, a pipeline should be created with a YAML file which is inside a Github repo. Can anyone point me to a resource to do this task?