I am referencing a repository in my azure-pipelines template like this:
resources: repositories: - repository: MyRepo type: git name: MyRep