Hello everyone! I am transitioning my prefect 1 wo...
# prefect-community
d
Hello everyone! I am transitioning my prefect 1 workflows to prefect 2 this month. My prefect 1 code uses the generic git storage to pull code from an Azure Devops repo. I don't see a generic git block in the documentation. Is Azure DevOps not supported as storage in Prefect 2?
1
b
Hey Daniel, from what I can see, Azure DevOps is not directly supported as storage in Prefect 2. However, Prefect 2 does support Azure Blob Storage, which can be used as an alternative. Here's a list of some supported storage options in Prefect 2: - Remote File System - Azure Storage (Blob Storage) - GitHub Storage You can find more information in the Prefect documentation here.
d
Thanks! After reviewing the code for the GitHub storage block I realized that it actually works just fine with azure devops so long as the URL is structured properly.
🚀 1
1
k
Hey @Daniel Lomartra would really appreciate if you could share what changes are needed? Fellow Azure Devops user 🙂
d
Absolutely. Like the following.
Copy code
devops_default = GitHub(
    repository=f"<https://dev.azure.com/{organization_name}/{project_name}/_git/{repository_name}/>",
    access_token=access_token,
    include_git_objects=False,
)
k
Thanks Daniel!! Really appreciate your help.