Files
docs-harvester/harvester.py

14 lines
414 B
Python
Executable File

#!/usr/bin/env python3
from devops import Organization, Project, DEVOPS_SCOPE
from azure.identity import DefaultAzureCredential
from json import dumps
org = Organization("https://dev.azure.com/mcovsandbox", DefaultAzureCredential().get_token(DEVOPS_SCOPE).token)
projects = org.projects
print([str(p) for p in projects])
ado_sandbox = Project(org, id="bafe0cf1-6c97-4088-864a-ea6dc02b2727")
print(ado_sandbox)