Draw an Azure DevOps repository's architecture from its own files
Turn an Azure Repos repository's Compose files, Kubernetes manifests, Terraform, OpenAPI descriptions, azure-pipelines.yml, SQL migrations and workspace packages into editable diagrams, including private repositories in your organisations.
Flowgraph Studio reads the files that already describe a system (Docker Compose, Kubernetes manifests, Terraform, OpenAPI descriptions, the CI configuration, SQL migrations, workspace packages) and draws each one as a diagram you can edit. This guide covers what is particular to Azure DevOps Services (dev.azure.com). The diagrams themselves are the same for every host, and Draw a GitHub repository's architecture describes each one in detail.
Import a public repository
Open Flowgraph Studio, choose Import repository, paste the repository's address and choose Scan repository. Any of these work:
dev.azure.com/organisation/project/_git/repository, as Azure shows it in Reposorganisation.visualstudio.com/project/_git/repository, the older formgit@ssh.dev.azure.com:v3/organisation/project/repository, the SSH address you clone with
Project and repository names may contain spaces; paste the address as Azure gives it.
Azure DevOps puts the branch and folder in the address's query rather than its path. To scan one folder, or another branch, open it in Repos → Files, choose the branch and folder there, and paste the address from the browser. It ends in something like ?path=/services/api&version=GBfeature/login, and Flowgraph reads both.
Your browser reads a public project's repository straight from Azure DevOps, with no sign-in. Most organisations keep their projects private, though; those are covered below.
Scanning needs no account. Adding the diagrams, and refreshing them later, needs one: Free accounts can add diagrams from 3 repositories in all and refresh them 50 times a month, and Pro and Pro Max have no limit. Delete every diagram from a repository to free its place for another, once a month.
What the scan finds
The scan lists each diagram it can draw, for example:
- Services from
docker-compose.yml - Kubernetes from the manifests in
k8s/ - Infrastructure from the Terraform in
infra/ - Endpoints from
openapi.yaml - Azure Pipelines from
azure-pipelines.yml, and other pipeline files such as those in.azure-pipelines/ - Data model from the SQL migrations, a schema dump or a Prisma schema
- Package map of the workspace packages
- Mermaid diagrams already written in the README and documentation
- Under From the code, a Codebase map of the folders and, for TypeScript, JavaScript, Python, Java, Go and C#, the Module dependencies and Class diagrams, and a Route map when the code uses a web framework it knows, drawn from the code when you choose Draw (what it shows).
Tick the ones you want. They go into a new project named after the repository.
Azure Pipelines
The pipeline diagram is drawn from the YAML pipeline files:
- Each stage is a group, with arrows from the stages it depends on: the stage before it when
dependsOnis left out, and none when it isdependsOn: []. - Its jobs are inside, with arrows between jobs that depend on each other. Each job shows its agent pool, and deployment jobs show the environment they deploy to.
- A pipeline with only
jobs:orsteps:is drawn as one stage. - Templates (
- template: …) are named in a note but not read, so what they add isn't drawn. - Classic pipelines made in the web editor have no YAML file, so they can't be drawn.
Private repositories (Pro and Pro Max)
Connect Azure DevOps under Account → GitLab, Bitbucket, and Azure DevOps, or from the Azure DevOps tab under Your repositories in the import dialog. You sign in with Microsoft and accept two read-only permissions: reading code (repositories, commits and branches), and reading your profile, so Flowgraph can find the organisations you belong to. It can't change anything.
Two things to know:
- Work or school accounts only. The sign-in uses Microsoft Entra ID, which doesn't accept personal Microsoft accounts (Outlook, Hotmail, Live). If your organisation signs in with personal accounts, use its public repositories, or ask for it to be connected to Microsoft Entra ID.
- Your organisation may need to approve Flowgraph first. Many companies let only an administrator allow new apps. If so, Microsoft says admin approval is needed, and Flowgraph says the same when you come back. An administrator approves it once for everyone, in Microsoft Entra.
Your repositories then appear on the Azure DevOps tab, across your organisations and their projects. Pick one, or paste its address. An organisation whose policies don't let Flowgraph in is left out of the list, and pasting one of its repositories says so, rather than asking you to connect again.
A private repository is read by Flowgraph's server with your own connection, and handed straight to your browser to draw. Azure DevOps checks on every read that you can still read the repository. Its files are never stored, cached or logged. Before diagrams from a private repository are added, you choose their titles and the project's name, because those are what people see if you share them.
Disconnect under Account deletes Flowgraph's tokens. Microsoft has no way for an app to withdraw its own access, so Account links you to My Apps to remove Flowgraph Studio there too. Account also shows what Flowgraph read in the last 90 days: which repository and commit, and how many files.
AI overviews (Pro and Pro Max)
In the scan result, Make overview has AI read the code and draw what the system is made of and how the parts connect. Make request flow follows its main request step by step as a sequence diagram. Each uses 5 AI credits, and an overview someone already made of the same public commit costs nothing. See AI architecture overview of a repository and AI request flow: trace a route through the code.
For a private repository, the first overview asks you to agree that excerpts of its code may be sent to Anthropic, our AI provider. Your answer is remembered for that repository, and you can withdraw it under Account. Private overviews are never cached or shared with anyone else. For every repository, files that hold credentials are left out, and values that look like secrets are replaced before anything is sent.
Link to it from your README
A link such as https://flowgraph.studio/azure-devops/organisation/project/repository opens the import with the repository filled in. The scan result has an Open in Flowgraph badge to copy into the README:
[](https://flowgraph.studio/azure-devops/organisation/project/repository)
Keep it up to date
Open a diagram, choose From Azure DevOps in the editor's top bar, then Refresh from Azure DevOps. Flowgraph reads the latest commit of the same branch, draws the diagram again from the same files, and shows what changed side by side. Replace the diagram, with the earlier one kept in version history, or add the new drawing beside it. Refreshing is free. From Azure DevOps also lists the files each diagram came from, linked to Azure DevOps at that commit.
Only Azure DevOps Services (dev.azure.com and visualstudio.com) is supported for now. Repositories on Azure DevOps Server, run by your company itself, can't be imported yet.
See also GitLab, Bitbucket and Keep architecture diagrams up to date.
More guides
- Edit Mermaid diagrams visually in VS CodeDrag, connect and restyle a Mermaid diagram on Flowgraph's canvas inside VS Code, and every change is written back into the .mmd file or Markdown block as ordinary code.
- Keep a diagram's style in its code with %% flowgraph-themeOne comment line keeps a Mermaid diagram's Flowgraph theme in the file, so it looks the same in your repository, in VS Code, from the CLI and through the render API.
- Preview Flowgraph diagrams in VS Code, with icons, layout and your themeInstall the Flowgraph Studio extension to preview Mermaid files and Markdown blocks in VS Code as Flowgraph draws them, see mistakes in plain words, and export SVG or PNG.