New MLOps (DevOps for Machine Learning) capabilities in Azure Machine Learning brings the sophistication of DevOps to data science, with orchestration and management capabilities to enable effective ML Lifecycle management.
- Using Azure Resource Manager an AzureML Service Connection type can be created to access your artifacts in an AzureML workspace.
- By registering a new version of a model into an AzureML service workspace, a trigger can be configured to kick off a release pipeline.
- Azure DevOps tasks for AzureML specific actions such as run experiment, model registering, model profiling, and model deployment.
How to set up your service connection:
To create a service connection to access your AzureML artifacts, first select your project.
Go to project settings, then service connections and click on Azure Resource Manager.
Select AzureMLWorkspace for the scope level, then fill in the following subsequent parameters.
How to enable model triggering in a release pipeline:
Go to your release pipeline and add a new artifact. Click on AzureML Model artifact then select the appropriate AzureML service connection and select from the available models in your workspace.
Enable the deployment trigger on your model artifact as shown here.
Every time a new version of that model is registered, a release pipeline will be triggered.
How to use the Azure DevOps AzureML tasks:
This task provides the optimal CPU and memory needed to run your model.
Go to your release pipeline, select or add a stage.
![add a stage](overview-5.png)
Next, click into the stage, then search and add AzureML Model Profile as a task.
Provide the service connection name in AzureML Workspace, the files necessary for scoring your model, sample input data your model will expect and the desired file path which will store the profiling results.
Go to your release pipeline, and select or add a stage. Next, search and add AzureML Model Deploy as a task.
Fill in the parameters, AzureML Workspace will be the service connection name, inference config file with contain all the necessary dependencies required for scoring your model. Select the model deployment target and deployment configuration file. Templates for the inference config file and deployment config file can be found here: https://github.com/microsoft/MLOps/tree/master/model-deployment.
For sample projects and examples check out aka.ms/mlops
Get started with AzureML - https://docs.microsoft.com/en-us/azure/machine-learning/service/overview-what-is-azure-ml
MLOps with AzureML - https://docs.microsoft.com/en-us/azure/machine-learning/service/concept-model-management-and-deployment
Have any issues or feedback?
Let us know here - https://feedback.azure.com/forums/257792-machine-learning