prefect-azure
makes it easy to leverage the capabilities of Azure in your workflows.
For example, you can retrieve secrets, read and write Blob Storage objects, and deploy your flows on Azure Container Instances (ACI).
Getting Started
Prerequisites
- Prefect installed in a virtual environment.
- An Azure account and the necessary permissions to access desired services.
Install prefect-azure
Install or update to the latest version of the prefect-azure library and dependencies.Register newly installed block types
Register the block types in the module to make them available for use.Examples
Download a blob
with_options
to customize options on any existing task or flow:
Run flows on Azure Container Instances
Run flows on Azure Container Instances (ACI) to dynamically scale your infrastructure. See the Azure Container Instances Worker Guide for a walkthrough of using ACI in a hybrid work pool. If you’re using Prefect Cloud, ACI push work pools provide all the benefits of ACI with a quick setup and no worker needed.Resources
For assistance using Azure, consult the Azure documentation. Refer to the prefect-azure API documentation linked in the sidebar to explore all the capabilities of the prefect-azure library.Additional installation options
Add the--pre
flag to install the latest pre-release version of the library for use with Prefect 3.
To use Blob Storage: