You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DevOps for AI template will help you to understand how to build the Continuous Integration and Continuous Delivery pipeline for a ML/AI project. We will be using the Azure DevOps Project for build and release pipelines along with Azure ML services for ML/AI model management and operationalization.
4
+
5
+
This template contains code and pipeline definition for a machine learning project demonstrating how to automate the end to end ML/AI project. The build pipelines include DevOps tasks for data sanity test, unit test, model training on different compute targets, model version management, model evaluation/model selection, model deployment as realtime web service, staged deployment to QA/prod, integration testing and functional testing.
6
+
7
+
## Prerequisite
8
+
- Active Azure subscription
9
+
- Minimum contributor access to Azure subscription
10
+
11
+
## Getting Started:
12
+
Once the template is imported for personal Azure DevOps account using DevOps demo generator, you need to follow below steps to get the pipeline running:
13
+
14
+
### Update Pipeline Config:
15
+
16
+
#### Build Pipeline
17
+
1. Go to the **Pipelines -> Builds** on the newly created project and click **Edit** on top right
18
+

19
+
2. Click on **Create or Get Workspace** task, select the Azure subscription where you want to deploy and run the solution, and click **Authorize**
20
+

21
+
3. Click all other tasks below it and select the same subscription (no need to authorize again)
22
+
4. Once the tasks are updated with subscription, click on **Save & queue** and select **Save**
23
+

24
+
25
+
#### Release Pipeline
26
+
1. Go to the **Pipelines -> Releases** and click **Edit** on top
27
+

28
+
2. Click on **1 job, 4 tasks** to open the tasks in **QA stage**
29
+

30
+
3. Update the subscription details in two tasks
31
+

32
+
4. Click on **Tasks** on the top to switch to the Prod stage, update the subscription details for the two tasks in prod
33
+

34
+
5. Once you fix all the missing subscription, the **Save** is no longer grayed, click on save to save the changes in release pepeline
35
+

36
+
37
+
### Update Repo config:
38
+
1. Go to the **Repos** on the newly created Azure DevOps project
39
+
2. Open the config file [/aml_config/config.json](/aml_config/config.json) and edit it
40
+
3. Put your Azure subscription ID in place of <>
41
+
4. Change resource group and AML workspace name if you want
42
+
5. Put the location where you want to deploy your Azure ML service workspace
43
+
6. Save the changes and commit these changes to master branch
44
+
7. The commit will trigger the build pipeline to run deploying AML end to end solution
45
+
8. Go to **Pipelines -> Builds** to see the pipeline run
46
+
47
+
## Steps Performed in the Build Pipeline:
48
+
49
+
1. Prepare the python environment
50
+
2. Get or Create the workspace
51
+
3. Submit Training job on the remote DSVM / Local Python Env
52
+
4. Register model to workspace
53
+
5. Create Docker Image for Scoring Webservice
54
+
6. Copy and Publish the Artifacts to Release Pipeline
55
+
56
+
## Steps Performed in the Release Pipeline
57
+
In Release pipeline we deploy the image created from the build pipeline to Azure Container Instance and Azure Kubernetes Services
58
+
59
+
### Deploy on ACI - QA Stage
60
+
1. Prepare the python environment
61
+
2. Create ACI and Deploy webservice image created in Build Pipeline
62
+
3. Test the scoring image
63
+
64
+
### Deploy on AKS - PreProd/Prod Stage
65
+
1. Prepare the python environment
66
+
2. Deploy on AKS
67
+
- Create AKS and create a new webservice on AKS with the scoring docker image
68
+
69
+
OR
70
+
71
+
- Get the existing AKS and update the webservice with new image created in Build Pipeline
72
+
3. Test the scoring image
73
+
74
+
### Repo Details
75
+
76
+
You can find the details of the code ans scripts in the repository [here](/docs/code_description.md)
77
+
78
+
### References
79
+
80
+
-[Azure Machine Learning(Azure ML) Service Workspace](https://docs.microsoft.com/en-us/azure/machine-learning/service/overview-what-is-azure-ml)
81
+
82
+
-[Azure ML Samples](https://docs.microsoft.com/en-us/azure/machine-learning/service/samples-notebooks)
83
+
-[Azure ML Python SDK Quickstart](https://docs.microsoft.com/en-us/azure/machine-learning/service/quickstart-create-workspace-with-python)
0 commit comments