Skip to content

Commit 5b1f6bb

Browse files
committed
more changes
1 parent b2cb0b7 commit 5b1f6bb

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed
File renamed without changes.

articles/machine-learning/how-to-setup-mlops-github-azureml.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Set up MLOps with Github
33
titleSuffix: Azure Machine Learning
4-
description: Learn how to set up a sample MLOps environment in AzureML
4+
description: Learn how to set up a sample MLOps environment in AzureML with GitHub Actions
55
services: machine-learning
66
author: abeomor
77
ms.author: osomorog
@@ -36,9 +36,6 @@ In this article, you learn about using Azure Machine Learning to set up an end-t
3636
- An Azure Machine Learning workspace.
3737
- Git running on your local machine.
3838
- Github as the source control repository
39-
- Install the [GitHub CLI](https://cli.github.com/)
40-
- Install the [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)
41-
- The [Terraform extension for Azure DevOps](https://marketplace.visualstudio.com/items?itemName=ms-devlabs.custom-terraform-tasks) if you're using Azure DevOps + Terraform to spin up infrastructure
4239

4340
> [!NOTE]
4441
>
@@ -52,7 +49,7 @@ In this article, you learn about using Azure Machine Learning to set up an end-t
5249
Before you can set up an MLOps project with AzureML, you need to set up authentication for Azure DevOps.
5350

5451
### Create service principal
55-
For the use of the demo, the creation of one or two service principles is required, depending on how many environments, you want to work on (Dev or Prod or Both). These principles can be created using one of the following methods:
52+
For the use of the demo, the creation of one is required, you can add more depending on how many environments, you want to work on (Dev or Prod or Both). These principles can be created using one of the following methods:
5653

5754
# [Create from Azure Cloud Shell](#tab/azure-shell)
5855

@@ -65,7 +62,7 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
6562

6663
![Screenshot of the cloud shell environment dropdown.](./media/how-to-setup-mlops-azureml/PS_CLI1_1.png)
6764

68-
1. Copy the following bash commands to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. If you're creating both a Dev and Prod environment, you'll need to run this script once for each environment, creating a service principal for each. This command will also grant the **Contributor** role to the service principal in the subscription provided. This is required for Azure DevOps to properly use resources in that subscription.
65+
1. Copy the following bash commands to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. This command will also grant the **Contributor** role to the service principal in the subscription provided. This is required for Azure DevOps to properly use resources in that subscription.
6966

7067
``` bash
7168
projectName="<your project name>"
@@ -100,7 +97,7 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
10097
}
10198
```
10299
103-
1. Copy all of this output, braces included.
100+
1. Copy all of this output, braces included. Save this information to a safe location, it will be use later in the demo to configure GitHub Repo.
104101
105102
1. Close the Cloud Shell once the service principals are created.
106103
@@ -127,10 +124,11 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
127124
128125
---
129126
130-
### Set up GitHub Repo
127+
## Set up GitHub Repo
131128
132-
1. **Fork the MLOps v2 Demo Template Repositories in your GitHub organization**
133-
Go to https://github.com/Azure/mlops-v2-gha-demo/fork to fork the mlops v2 demo repo into your Github org. This repo has reusable mlops code that can be used across multiple projects.
129+
1. Fork the [[MLOps v2 Demo Template Repo](https://github.com/Azure/mlops-v2-gha-demo) in your GitHub organization
130+
131+
1. Go to https://github.com/Azure/mlops-v2-gha-demo/fork to fork the mlops v2 demo repo into your Github org. This repo has reusable mlops code that can be used across multiple projects.
134132
135133
![image](./media/how-to-setup-mlops-azureml/gh-fork.png)
136134
@@ -187,19 +185,19 @@ This step deploys the training pipeline to the Azure Machine Learning workspace
187185

188186
1. In your GitHub project repository (ex: taxi-fare-regression), select **Actions**
189187

190-
![GH-actions](./media/how-to-setup-mlops-azureml/gh-actions.png)
188+
![GitHub actions](./media/how-to-setup-mlops-azureml/gh-actions.png)
191189

192190
This will display the pre-defined GitHub workflows associated with your project. For a classical machine learning project, the available workflows will look similar to this:
193191

194-
![GH-workflows](./media/how-to-setup-mlops-azureml/gh-workflows.png)
192+
![GitHub workflows](./media/how-to-setup-mlops-azureml/gh-workflows.png)
195193

196194
1. Select would be **tf-gha-deploy-infra.yml**. This would deploy the Azure ML infrastructure using GitHub Actions and Terraform.
197195

198-
![GH-deploy-infra](./media/how-to-setup-mlops-azureml/gh-deploy-infra.png)
196+
![GitHub deploy-infra](./media/how-to-setup-mlops-azureml/gh-deploy-infra.png)
199197

200198
1. On the right side of the page, select **Run workflow** and select the branch to run the workflow on. This may deploy Dev Infrastructure if you've created a dev branch or Prod infrastructure if deploying from main. Monitor the pipline for successful completion.
201199
202-
![GH-infra-pipeline](./media/how-to-setup-mlops-azureml/gh-infra-pipeline.png)
200+
![GitHub infra pipeline](./media/how-to-setup-mlops-azureml/gh-infra-pipeline.png)
203201
204202
1. When the pipeline has complete successfully, you can find your Azure ML Workspace and associated resources by logging in to the Azure Portal. Next, a model training and scoring pipelines will be deployed into the new Azure Machine Learning environment.
205203
@@ -237,7 +235,7 @@ Next, you will deploy the model training pipeline to your new Azure Machine Lear
237235
238236
1. In your GitHub project repository (ex: taxi-fare-regression), select **Actions**
239237
240-
![GH-actions](./media/how-to-setup-mlops-azureml/gh-actions.png)
238+
![GitHub actions page](./media/how-to-setup-mlops-azureml/gh-actions.png)
241239
242240
1. Select the **deploy-model-training-pipeline** from the workflows listed on the left and the click **Run Workflow** to execute the model training workflow. This will take several minutes to run, depending on the compute size.
243241
@@ -258,29 +256,28 @@ This scenario includes prebuilt workflows for two approaches to deploying a trai
258256
259257
1. In your GitHub project repository (ex: taxi-fare-regression), select **Actions**
260258
261-
![GH-actions](./media/how-to-setup-mlops-azureml/gh-actions.png)
259+
![GitHub actions pages](./media/how-to-setup-mlops-azureml/gh-actions.png)
262260
263261
### Online Endpoint
264262
265263
1. Select the **deploy-online-endpoint-pipeline** from the workflows listed on the left and click **Run workflow** to execute the online endpoint deployment pipeline workflow. The steps in this pipeline will create an online endpoint in your Azure Machine Learning workspace, create a deployment of your model to this endpoint, then allocate traffic to the endpoint.
266264
267-
![gh online endpoint](./media/how-to-setup-mlops-azureml/gh-online-endpoint.png)
265+
![GitHub online endpoint](./media/how-to-setup-mlops-azureml/gh-online-endpoint.png)
268266
269-
Once completed, you will find the online endpoint deployed in the Azure ML workspace and available for testing.
267+
Once completed, you will find the online endpoint deployed in the Azure ML workspace and available for testing.
270268
271-
![aml-taxi-oep](./media/how-to-setup-mlops-azureml/aml-taxi-oep.png)
269+
![AzureML taxi Online endpoint](./media/how-to-setup-mlops-azureml/aml-taxi-oep.png)
272270
273271
### Batch Endpoint
274272
275273
1. Select the **deploy-batch-endpoint-pipeline** from the workflows and click **Run workflow** to execute the batch endpoint deployment pipeline workflow. The steps in this pipeline will create a new AmlCompute cluster on which to execute batch scoring, create the batch endpoint in your Azure Machine Learning workspace, then create a deployment of your model to this endpoint.
276274
277-
![gh batch endpoint](./media/how-to-setup-mlops-azureml/gh-batch-endpoint.png)
275+
![GitHub batch endpoint](./media/how-to-setup-mlops-azureml/gh-batch-endpoint.png)
278276
279-
1. Once completed, you will find the batch endpoint deployed in the Azure ML workspace and available for testing.
277+
2. Once completed, you will find the batch endpoint deployed in the Azure ML workspace and available for testing.
280278
281-
![aml-taxi-bep](./media/how-to-setup-mlops-azureml/aml-taxi-bep.png)
279+
![AzureML taxi batch endpoint](./media/how-to-setup-mlops-azureml/aml-taxi-bep.png)
282280
283-
284281
## Moving to Production
285282
286283
Example scenarios can be trained and deployed both for Dev and Prod branches and environments. When you are satisfied with the performance of the model training pipeline, model, and deployment in Testing, Dev pipelines and models can be replicated and deployed in the Production environment.

0 commit comments

Comments
 (0)