βοΈ Microsoft Azure Integration
Deploy FlowyML pipelines on Azure with Azure ML, Blob Storage, and AKS orchestration.
π€ Azure ML π¦ Blob Storage βΈοΈ AKS
βοΈ Microsoft Azure
What you'll learn
How to integrate FlowyML with Azure Blob Storage and Azure ML for enterprise-grade ML pipelines on Azure.
Seamlessly move from local development to Azure's secure cloud infrastructure.
Why Azure with FlowyML?
| Feature | Benefit |
|---|---|
| Enterprise Security | Azure Active Directory integration |
| Blob Storage | Cost-effective storage for massive datasets |
| Azure ML | Managed compute clusters for training and inference |
| Compliance | SOC 2, HIPAA, GDPR-ready infrastructure |
Run a pipeline on Azure ML
Use the Azure ML workspace and compute target that execute your jobs, including jobs launched from a Foundry project backed by an Azure ML workspace. FlowyML submits a native Azure ML pipeline, records its job ID locally, and follows the child jobs for each step or execution group.
Install the integration on your workstation and authenticate an identity with access to the workspace, compute, and job outputs. Install the same FlowyML build in the Azure worker environment alongside your pipeline's dependencies so its step runner understands the submitted command and output format.
Add a stack to the project's flowyml.yaml. Set compute to an existing Azure ML compute target and environment to a registered environment version. In this example, pipelines/train.py exports create_pipeline() from the directory uploaded as code.
stacks:
azure-training:
orchestrator:
type: azure_ml
subscription_id: ${AZURE_SUBSCRIPTION_ID}
resource_group: ${AZURE_RESOURCE_GROUP}
workspace_name: ${AZURE_WORKSPACE}
compute: cpu-cluster
environment: azureml:flowyml-worker:1
code: .
pipeline_module: pipelines.train:create_pipeline
The command streams logs until the run finishes and downloads its published outputs. To submit in the background, omit --follow. You can reconnect later with the FlowyML run ID printed at submission.
The run overview shows the Azure job state, child job status and timing, and a link to Azure ML Studio. Open Job log for controller output or select a step's Logs tab for worker output. Steps assigned to the same execution group share a worker and its log. Pipelines with runtime branches, conditional steps, or dynamic subpipelines run in a single Azure worker so FlowyML can evaluate the branch against its actual inputs. The final overview records which steps ran, failed, or were skipped.
Azure's NotResponding state means the service has missed a heartbeat. FlowyML keeps checking the job for recovery. If a completed parent is missing child results, the overview identifies the unconfirmed steps. Run flowyml sync RUN_ID --wait again to collect results published later. Azure ML job states
For pipelines opened by Azure job ID, FlowyML reads declared node names from the parent job while Azure indexes its children. If Azure has published neither a graph nor child jobs, a later sync can collect them. Azure ML pipeline job definition
FlowyML passes typed inputs and outputs between jobs through Azure ML datastore mounts. Set the orchestrator's optional datastore field to select a registered datastore. After a run finishes, opening its overview or running flowyml sync downloads published outputs and logs under the configured runs directory (.flowyml/runs/RUN_ID/azureml/ by default). Cached files and recorded metrics remain available locally after disconnecting. For an older run saved with only a short Azure job name, use flowyml sync RUN_ID --stack azure-training to supply its workspace.
ποΈ Azure ML Model Registry
Version, stage, and resolve models in your Azure ML workspace (or an org-scoped
Azure ML registry for cross-workspace sharing) with the azureml_registry
plugin. Azure ML has no built-in stage concept, so FlowyML represents stages as
model tags (stage=production), the common Azure ML convention.
from flowyml.plugins.model_registries import AzureMLModelRegistry
registry = AzureMLModelRegistry(
subscription_id="<subscription_id>",
resource_group="<resource_group>",
workspace_name="<workspace_name>",
# registry_name="<org-registry>", # optional: cross-workspace sharing
)
Or, more commonly, attach it to a stack in flowyml.yaml so every
register β promote β deploy step uses it automatically:
stacks:
azureml-openshift:
orchestrator:
type: azure_ml
subscription_id: ${AZURE_SUBSCRIPTION_ID}
resource_group: ${AZURE_RESOURCE_GROUP}
workspace_name: ${AZURE_WORKSPACE}
compute: cpu-cluster
artifact_store:
type: azure_blob
account_url: ${AZURE_BLOB_ACCOUNT_URL}
container_name: ml-artifacts
model_registry:
type: azureml_registry
subscription_id: ${AZURE_SUBSCRIPTION_ID}
resource_group: ${AZURE_RESOURCE_GROUP}
workspace_name: ${AZURE_WORKSPACE}
model_deployer:
type: openshift # serve on OpenShift, or kubernetes / local_docker
namespace: ml-prod
registry_uri: ${OPENSHIFT_REGISTRY}
This is exactly the stack used in the end-to-end tutorial: train on Azure ML, register to Azure ML (or MLflow), and serve on OpenShift β all by switching a stack, with no pipeline code changes.
Train on Azure ML β serve anywhere
Because the model registry and model deployer are stack components, the same code that trains and registers on Azure ML can serve the winner on OpenShift, Kubernetes, or your laptop. See Serve on OpenShift (E2E) and the Model Serving & Deployment guide.
Install the Azure extra to enable the orchestrator, Blob store, and registry:
π Authentication
FlowyML supports multiple Azure credential methods:
DefaultAzureCredentialβ automatically tries environment vars, managed identity, and CLI- Service Principal β for CI/CD pipelines
- Azure CLI β for local development
# Option 1: Service Principal
export AZURE_CLIENT_ID=...
export AZURE_CLIENT_SECRET=...
export AZURE_TENANT_ID=...
# Option 2: Azure CLI
az login
Best Practices
Use Managed Identity in production
Avoid service principal secrets. Use Managed Identity for VMs and Azure ML compute.
Blob storage tiers
Use Hot tier for active artifacts, Cool tier for infrequent access, and Archive for long-term storage.
π What's Next?
βοΈ GCP Integration
Deploy FlowyML pipelines on Google Cloud with Vertex AI and GCS storage.
βοΈ AWS Integration
Run FlowyML pipelines on AWS with SageMaker orchestration and S3 storage.