-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuremlcli_example_pipeline.yml
72 lines (71 loc) · 3.05 KB
/
azuremlcli_example_pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#Your build pipeline references a secret variable named ‘sp.password’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references a secret variable named ‘sb.connection’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
variables:
# See the README for specifics on this variables
gh.repo: ''
rp.version: 'demo_changed_notebooks'
rp.root: 'notebooks'
rp.condaFile: ''
ex.compute: 'brhung-cpu-demo'
ex.image: 'mcr.microsoft.com/azureml/base:intelmpi2018.3-ubuntu16.04'
do.organization: 'msdata'
do.project: 'Vienna'
sp.client: 'a1371676-65af-4420-a9f2-fee38388a4e1'
sp.tenant: '72f988bf-86f1-41af-91ab-2d7cd011db47'
ws.name: 'brhung-ml'
ws.subscription: 'bc69d98c-7d2b-4542-88a4-f86eb4aea4a5'
ws.resourceGroup: 'brhung-testing'
sb.name: 'function-queue'
steps:
- task: PublishToAzureServiceBus@1
displayName: 'Trigger Notebook Execution Azure Function'
inputs:
azureSubscription: 'Notebook_Validation_Queue'
messageBody: |
{
"job": "!START",
"auth_token": "$(system.AccessToken)",
"build_id": "$(Build.BuildId)",
"run_condition": "all_pass",
"run_config": {
"repo": "$(gh.repo)",
"version": "$(rp.version)",
"root": "$(rp.root)",
"notebooks": "notebooks/how-to-use-azureml/automated-machine-learning/classification-with-onnx/auto-ml-classification-with-onnx.ipynb",
"conda_file": "$(rp.condaFile)",
"compute_target": "$(ex.compute)",
"base_image": "$(ex.image)"
},
"azure_resources": {
"organization": "$(do.organization)",
"project": "$(do.project)",
"run_id": "default_run_id",
"service_principal": {
"username": "$(sp.client)",
"tenant": "$(sp.tenant)",
"password": "$(sp.password)"
},
"workspace": {
"name": "$(ws.name)",
"subscription_id": "$(ws.subscription)",
"resource_group": "$(ws.resourceGroup)"
}
},
"wrap_up": {
"queue": {
"connection_string": "$(sb.connection)",
"name": "$(sb.name)"
},
"call_back": {
"error_message": "default_error_message",
"project_url": "$(system.TeamFoundationCollectionUri)",
"plan_url": "$(system.CollectionUri)",
"project_id": "$(system.TeamProjectId)",
"hub_name": "$(system.HostType)",
"plan_id": "$(system.PlanId)",
"job_id": "$(system.JobId)",
"task_id": "$(system.TaskInstanceId)"
}
}
}
waitForCompletion: true