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
Copy file name to clipboardExpand all lines: docs/getting_started.md
+22-18Lines changed: 22 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
### 2. Create Azure DevOps account
9
9
We use Azure DevOps for running our build(CI), retraining trigger and release (CD) pipelines. If you don't already have Azure DevOps account, create one by following the instructions [here](https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/create-organization?view=azure-devops)
10
10
11
-
If you already have Azure DevOps account, create a new project.
11
+
If you already have Azure DevOps account, create a [new project](https://docs.microsoft.com/en-us/azure/devops/organizations/projects/create-project?view=azure-devops).
12
12
13
13
**Note:** Make sure you have the right permissions in Azure DevOps to do so.
14
14
@@ -17,10 +17,9 @@ If you already have Azure DevOps account, create a new project.
17
17
To create service principal, register an application entity in Azure Active Directory (Azure AD) and grant it the Contributor or Owner role of the subscription or the resource group where the web service belongs to. See [how to create service principal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal) and assign permissions to manage Azure resource.
18
18
Please make note the following values after creating a service principal, we will need them in subsequent steps
19
19
- Azure subscription id (subscriptionid)
20
-
- Service principal username (spidentity)(application id)
21
-
- Service principal password (spsecret) (auth_key)
22
-
- Service principal tenant id (sptenant)
23
-
-
20
+
- Service principal username (spidentity)([application id](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#get-application-id-and-authentication-key))
21
+
- Service principal password (spsecret) ([auth_key](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#get-application-id-and-authentication-key))
22
+
- Service principal [tenant id](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#get-tenant-id) (sptenant)
24
23
25
24
**Note:** You must have sufficient permissions to register an application with your Azure AD tenant, and assign the application to a role in your Azure subscription. Contact your subscription adminstator if you don't have the permissions. Normally a subscription admin can create a Service principal and can provide you the details.
26
25
@@ -36,42 +35,47 @@ We noted the value of these variables in previous steps.
36
35
37
36
**NOTE:** These values should be treated as secret as they allow access to your subscription.
38
37
39
-
We make use of variable group inside Azure DevOps to store variables and their values that we want to make available across multiple pipelines. You can either store the values directly here or connect to an Azure Key Vault in your subscription. Please refer to the documentation [here](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=yaml#link-secrets-from-an-azure-key-vault) to learn more about how to create a variable group and [link](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=designer#link-secrets-from-an-azure-key-vault) it to your pipeline.
38
+
We make use of variable group inside Azure DevOps to store variables and their values that we want to make available across multiple pipelines. You can either store the values directly in [Azure DevOps](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=designer#create-a-variable-group)or connect to an Azure Key Vault in your subscription. Please refer to the documentation [here](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=designer#create-a-variable-group) to learn more about how to create a variable group and [link](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/variable-groups?view=azure-devops&tabs=designer#use-a-variable-group) it to your pipeline.
40
39
41
40
Please name your variable group **AzureKeyVaultSecrets**, we are using this name within our build yaml file.
42
41
43
42
Up until now you shouls have
44
-
-forked (or cloned) the repo,
45
-
-created a devops account or use an existing one
46
-
- got service principal details and subscription id.
47
-
- set them as variable group within devops.
43
+
-Forked (or cloned) the repo
44
+
-Created a devops account or use an existing one
45
+
-Got service principal details and subscription id
46
+
-Set them as variable group within devops
48
47
49
48
We now have 3 pipelines that we would set up
50
-
- Build Pipeline (azure-pipelines.yml): Runs tests and sets up infrastructure
51
-
- Retraining trigger pipeline(/template/retraining-template.json): This pipeline submits a pipeline job to Azure ML Pipelines and trains a new model and publishes image, if new model is better after evaluation.
52
-
- Release pipeline(/template/release-template.json): This pipeline releases our image and deploys it to QA and Prod environment.
49
+
-**Build Pipeline (azure-pipelines.yml)**: Runs tests and sets up infrastructure
50
+
-**Retraining trigger pipeline(/template/retraining-template.json)**: This pipeline triggers Azure ML Pipeline (training/retraining) which trains a new model and publishes model image, if new model performs better
51
+
-**Release pipeline(/template/release-template.json)**: This pipeline deploys and tests model image as web service in QA and Prod environment
53
52
54
53
55
54
56
55
### 5. Set up Build Pipeline
57
56
1. Select your devops organization and project by clicking dev.azure.com
58
57
2. Once you are in the right devops project, click Pipelines on the left hand menu and select Builds
59
-
3.In the Build Menu, click **New**dropdown and then select **New build pipeline**
5. On the Select option page, select the GitHub repository where you forked the code.
65
64

66
65
67
-
6.Since the repository contains azure-pipelines.yml at the root level, Azure DevOps recognizes it and auto imports it. Click run and this will start the build pipeline.
68
-

66
+
6.Authorize Azure Pipelines to access your git account
7. Your build run would look similar to the following image
69
+
7. Since the repository contains azure-pipelines.yml at the root level, Azure DevOps recognizes it and auto imports it. Click **Run** and this will start the build pipeline.
8. Your build run would look similar to the following image
71
73

72
74
73
75
Great, you now have the build pipeline setup, you can either manually trigger it or it gets automatically triggered everytime there is a change in the master branch.
74
76
77
+
**Note:** The build pipeline will perform basic test on the code and provision infrastructure on azure. This can take around 10 mins to complete.
78
+
75
79
### 6. Set up Retraining trigger release pipeline
76
80
77
81
**Note:** For setting up release pipelines, first download the [release-pipelines](../release-pipelines) to your local filesystem so you can import it.
0 commit comments