ML Components in Azure ML

GitHub Actions for MLOps - Deploy Model

  1. Setup: Create all necessary Azure resources for the solution.
  2. Model development (inner loop): Explore and process the data to train and evaluate the model.
  3. Continuous integration: Package and register the model.
  4. Model deployment (outer loop): Deploy the model.
  5. Continuous deployment: Test the model and promote to production environment.
  6. Monitoring: Monitor model and endpoint performance.

MLOPS cli2

You can manage your machine learning models with the Azure Machine Learning extension for the CLI (v2). When you execute code as an Azure Machine Learning job, you can easily set up automated model training.

The first step to operationalize a machine learning model is to run it as an Azure Machine Learning job. You can run individual scripts as command jobs, or groups of scripts as a pipeline job.

For both command and pipeline jobs, you’ll need to create a YAML file, which details:

$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
code: src
command: >-
  python main.py 
  --diabetes-csv $
inputs:
  diabetes:
    path: azureml:diabetes-data:1
    mode: ro_mount
environment: azureml:basic-env-scikit@latest
compute: azureml:aml-instance
experiment_name: diabetes-data-example
description: Train a classification model on diabetes data using a registered dataset as input.