-
Login to Azure Devops -> Enable preview feature called
Multi Stage Pipeline. Instructions here. -
Create a project from the devops portal (top right of the portal). If you have trouble then refer to docs
-
Create Azure Resource Manager Service connection. This is needed for azure devops to connect to your subscription and create/manage resources.
Go to
project settingsin bottom left of devops portal & selectService Connectionsand setup a Resource Manager connection. You have few options:- Option 1: If you have
ContributororOwneraccess to theSubscriptionor aResource Group- Select
Service Principal (Automatic) - Select the scope of your choice (ideally select
Subscriptionas scope and specificResource group) - Name of this Connection should be
AzureResourceManagerConnection. Leave this checkedAllow all pipelines to use this connection.
- Select
- Option 2: If you would like to restrict access to a ML workspace level OR if you are in a tighter access control environment:
- Create Service Principal & look up Subscription id. Instructions here. If you already created one part of prerequisites, you can skip this.
- Select
Service Principal (Manual) - Select the scope of your choice (in this case select
Machine Learning Workspace) - Fill in all the values
- Name of this Connection should be
AzureResourceManagerConnection. Leave this checkedAllow all pipelines to use this connection.
- Option 1: If you have
-
The following step is needed for additional security for the prediction service that we will deploy. Inorder to treat the service endpoint URI and API key as
secretin the devops pipeline, create a variable group:- In Azure Devops leftnav, navigate to
Pipeline->Library. Create a newVariable groupby clicking+ Variable. Name itMLOPSVG - Open the group and select
Allow access to all pipelines - Add two new variables
TMP_API_KEYandTMP_SCORING_URI. For the values enter any value e.g.dummy. Click theLockicon in the value to mark itSecret.Savethe changes to the Variable group
- In Azure Devops leftnav, navigate to
-
[Optional] For Batch Inference you need to add the following variables using the values you got in the prerequsite step:
- WORKSPACE
- RESOURCE_GROUP
- SP_APP_ID
- SP_APP_SECRET
- SUBSCRIPTION_ID
- TENANT_ID
Savethe changes to the Variable group