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: articles/machine-learning/how-to-setup-mlops-azureml.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,20 +49,23 @@ In this article, you learn about using Azure Machine Learning to set up an end-t
49
49
50
50
## Set up authentication with Azure and DevOps
51
51
52
-
Before you can setup an MLOps project with AzureML you need to make sure you have the correct authentication setup for Azure DevOps.
52
+
Before you can set up an MLOps project with AzureML, you need to set up authentication for Azure DevOps.
53
53
54
54
### Create service principal
55
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:
56
56
57
57
# [Create from Azure Cloud Shell](#tab/azure-shell)
58
58
59
-
1. Launch the [Azure Cloud Shell](https://shell.azure.com). (If this the first time you have launched the cloud shell, you will be required to creata storage account for the cloud shell.)
59
+
1. Launch the [Azure Cloud Shell](https://shell.azure.com).
60
+
61
+
> [!TIP]
62
+
> The first time you've launched the Cloud Shell, you'll be prompted to create a storage account for the Cloud Shell.
60
63
61
64
1. If prompted, choose **Bash** as the environment used in the Cloud Shell. You can also change environments in the drop-down on the top navigation bar
62
65
63
66

64
67
65
-
1. Copy the bash commands below to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. If you are creating both a Dev and Prod environment you will 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.
68
+
1. Copy the bash commands below to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. If you are 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.
66
69
67
70
```bash
68
71
projectName="<your project name>"
@@ -79,7 +82,7 @@ Before you can setup an MLOps project with AzureML you need to make sure you hav
79
82
80
83
1. Copy your edited commands into the Azure Shell and run them (**Ctrl** + **Shift** + **v**).
81
84
82
-
1. After running these commands you will be presented with information related to the service principal. Save this information to a safe location, it will be use later in the demo to configure Azure DevOps.
85
+
1. After running these commands, you'll be presented with information related to the service principal. Save this information to a safe location, it will be use later in the demo to configure Azure DevOps.
83
86
84
87
```json
85
88
{
@@ -90,7 +93,7 @@ Before you can setup an MLOps project with AzureML you need to make sure you hav
90
93
}
91
94
```
92
95
93
-
1. Repeat **Step 3.**if you are creating service principals for Dev and Prod environments.
96
+
1. Repeat **Step 3.** if you're creating service principals for Dev and Prod environments.
94
97
95
98
1. Close the Cloud Shell once the service principals are created.
96
99
@@ -101,15 +104,15 @@ Before you can setup an MLOps project with AzureML you need to make sure you hav
101
104
102
105
1. Select **New Registration**.
103
106
104
-

107
+

105
108
106
-
1. Go through the process of creating a Service Principle (SP) selecting **Accounts in any organizational directory (Any Azure AD directory - Multitenant)** and name it **Azure-ARM-Dev-ProjectName**. Once created, repeat and create a new SP named **Azure-ARM-Prod-ProjectName**. Please replace**ProjectName** with the name of your project so that the service principal can be uniquely identified.
109
+
1. Go through the process of creating a Service Principle (SP) selecting **Accounts in any organizational directory (Any Azure AD directory - Multitenant)** and name it **Azure-ARM-Dev-ProjectName**. Once created, repeat and create a new SP named **Azure-ARM-Prod-ProjectName**. Replace**ProjectName** with the name of your project so that the service principal can be uniquely identified.
107
110
108
111
1. Go to **Certificates & Secrets** and add for each SP **New client secret**, then store the value and secret separately.
109
112
110
113
1. To assign the necessary permissions to these principals, selectyour respective [subscription](https://portal.azure.com/#view/Microsoft_Azure_BillingSubscriptionsBlade?) and go to IAM. Select **+Add** then select **Add Role Assignment**.
111
114
112
-

115
+

113
116
114
117
1. Select Contributor and add members selecting + Select Members. Add the member **Azure-ARM-Dev-ProjectName** as create before.
0 commit comments