Efficiently Store and Share ZenML Artifacts with Azure Blob Storage
Enhance your ZenML workflows by leveraging Azure Blob Storage as a scalable and reliable artifact store. This integration enables seamless storage and sharing of pipeline artifacts, making it ideal for collaborative ML projects and production-grade MLOps.
# 1. Install the ZenML `azure` integration
# zenml integration install azure
# 2. Register an Azure artifact store
# zenml artifact-store register <NAME> --flavor azure --path=<PATH_TO_STORAGE>
# 3. Register a stack with the new artifact store
# zenml register stack <STACK_NAME> -a <NAME> -o default --set
from typing import Annotated
from zenml import pipeline, step
from zenml.client import Client
@step
def hello_world() -> Annotated[str, "my_first_artifact"]:
return "Hello World!"
@pipeline
def my_pipeline():
_ = hello_world()
if __name__ == "__main__":
my_pipeline()
# Fetch the artifact and print it
print("Result: ", Client().get_artifact_version("my_first_artifact").load())
Expand your ML pipelines with more than 50 ZenML Integrations