prefect-azure
Prefect integrations with Microsoft Azure services
What it is and what it does
prefect-azure is an official Prefect integration that extends Prefect's workflow orchestration capabilities to Azure services. It provides task and flow abstractions for Azure Blob Storage (download/upload), Azure Container Instances (job execution), Cosmos DB, and ML Datastore, plus a managed identity authentication plugin that lets the Prefect server connect to Azure Database for PostgreSQL using short-lived Entra tokens instead of passwords. The package ships as a pure-Python wheel with low install friction and depends on Prefect, Azure SDK libraries (azure-identity, azure-mgmt-containerinstance, azure-mgmt-resource), and aiohttp for async operations.
You use it by installing prefect-azure, configuring Azure credentials as Prefect blocks, and then writing Prefect flows that call Azure-specific tasks or use Azure Container Instances as execution infrastructure. It's designed for teams running Prefect on Azure who want native integration with Azure storage, compute, and database services without writing custom connectors.
Use it for:
- Download or upload files from Azure Blob Storage as part of a Prefect workflow without manual SDK setup.
- Run containerized tasks on Azure Container Instances directly from Prefect flows, scaling compute on demand.
- Authenticate Prefect server to Azure PostgreSQL using managed identity tokens, eliminating password storage.
- Deploy Prefect flows to run on Azure Container Instance workers for cloud-native orchestration.
- Integrate Cosmos DB or ML Datastore operations into Prefect workflows with pre-built tasks.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Prefect integrations for orchestrating workflows on Azure, including blob storage, container instances, Cosmos DB, and managed identity authentication for Prefect server databases.
Yes, if you run Prefect on Azure and need native integration with Azure services. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and low install friction. It's a first-party Prefect integration with clear documentation and examples. Install it if your workflows depend on Azure storage, compute, or database services; skip it if you're not using Prefect or don't need Azure-specific tasks.
Install
prefect-azure on PyPI
pip
pip install prefect-azureuv
uv add prefect-azurepoetry
poetry add prefect-azureInstalling prefect-azure
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release 30 days ago and ongoing commits. Requires Prefect and several Azure SDK packages as runtime dependencies.
License in practice
Apache License 2.0 (permissive) allows use in commercial and private projects with minimal restrictions; you must include a copy of the license and state significant changes.
Quickstart
pip install prefect-azure
from prefect import flow
from prefect_azure import AzureBlobStorageCredentials
from prefect_azure.blob_storage import blob_storage_download
@flow
def download_blob():
creds = AzureBlobStorageCredentials(connection_string="...")
return blob_storage_download(blob="file.txt", container="data", azure_credentials=creds)
download_blob()
Requires Prefect to be installed and configured; Azure credentials (connection string or managed identity) must be available at runtime.
Verify before relying
- Whether optional extras (blob_storage, cosmos_db, ml_datastore) are included by default or require separate installation.
- Exact scope of Azure services supported beyond those explicitly documented in the excerpt.
- Performance characteristics when running large-scale workflows on Azure Container Instances.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — aiohttp, azure_identity, azure_mgmt_containerinstance, azure-mgmt-resource, prefect, prefect-docker, setuptools |
| Maintenance | actively maintained — 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 312,988/month — #7,720 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_azure-0.4.12-py3-none-any.whl
Keywords: prefect
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
prefect-dockerProvides Docker task execution and container…
permissive · top 5,000 on PyPI
prefectPrefect is a Python workflow orchestration…
permissive · top 5,000 on PyPI
agent-framework-azure-cosmosProvides Azure Cosmos DB integration for the…
permissive · top 15,000 on PyPI
prefect-redisIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-dbtPrefect integration that orchestrates dbt…
permissive · top 15,000 on PyPI
prefect-gcpIntegrates Prefect workflow orchestration with…
permissive · top 5,000 on PyPI
prefect-rayIntegrates Ray distributed computing with…
permissive · top 15,000 on PyPI
prefect-sqlalchemyIntegrates SQLAlchemy with Prefect workflows,…
permissive · top 5,000 on PyPI
azure-mgmt-cosmosdbProvides programmatic management of Azure…
permissive · top 5,000 on PyPI
prefect-awsProvides pre-built blocks, tasks, and workers…
permissive · top 5,000 on PyPI