Skip to content

Commit 77edb73

Browse files
authored
2020-09-01-preview Batch endpoints and deployments (#11028)
* API spec for AzureML Batch Endpoints and deployments * Update readme * Fix validation errors * Validation fixes * Fix validation errors * Validation fixes part 2 * Fix spec errors * Fix version * PR feedback from ARM API review Co-authored-by: Puviyarasan Pandian <[email protected]>
1 parent 8b447ea commit 77edb73

File tree

11 files changed

+1548
-0
lines changed

11 files changed

+1548
-0
lines changed

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/batchInference.json

Lines changed: 982 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "resourceGroup-1234",
5+
"workspaceName": "testworkspace",
6+
"api-version": "2020-09-01-preview",
7+
"endpointName": "testEndpointName",
8+
"deploymentId": "testBatchDeployment",
9+
"properties": {
10+
"location": "westus2euap",
11+
"tags": {},
12+
"properties": {
13+
"scaleSettings": {
14+
"nodeCount": 1
15+
},
16+
"batchSettings": {
17+
"computeId": "cluster-name",
18+
"partitioningScheme": {
19+
"miniBatchSize": 20
20+
},
21+
"outputConfiguration": {
22+
"outputAction": "AppendRow"
23+
},
24+
"errorThreshold": 5,
25+
"retrySettings": {
26+
"timeoutInSeconds": 30
27+
}
28+
},
29+
"codeConfiguration": {
30+
"command": [
31+
"batch_scoring.py"
32+
]
33+
},
34+
"environmentId": "some environment",
35+
"properties": {
36+
"description": "string"
37+
}
38+
}
39+
}
40+
},
41+
"responses": {
42+
"200": {
43+
"body": {
44+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/batchEndpoints/testEndpointName/deployments/testBatchDeployment",
45+
"name": "testBatchDeployment",
46+
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments",
47+
"location": "westus2euap",
48+
"tags": {},
49+
"properties": {
50+
"scaleSettings": {
51+
"nodeCount": 1
52+
},
53+
"batchSettings": {
54+
"computeId": "some compute",
55+
"errorThreshold": 5,
56+
"retrySettings": {
57+
"maximumRetries": 0,
58+
"timeoutInSeconds": 30
59+
},
60+
"partitioningScheme": {
61+
"partitioningKey": null,
62+
"miniBatchSize": 20
63+
},
64+
"loggingLevel": "Info",
65+
"outputConfiguration": {
66+
"outputAction": "AppendRow",
67+
"appendRowFileName": null
68+
}
69+
},
70+
"description": "Testing deployment creation",
71+
"properties": {
72+
"description": "string"
73+
},
74+
"modelId": "some model",
75+
"codeConfiguration": {
76+
"commandType": "Command",
77+
"codeArtifactId": "some code artifact",
78+
"command": [
79+
"batch_scoring.py"
80+
]
81+
},
82+
"environmentId": "some environment",
83+
"provisioningState": "Succeeded"
84+
}
85+
}
86+
},
87+
"201": {
88+
"body": {
89+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/batchEndpoints/testEndpointName/deployments/testBatchDeployment",
90+
"name": "testBatchDeployment",
91+
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments",
92+
"location": "westus2euap",
93+
"tags": {},
94+
"properties": {
95+
"scaleSettings": {
96+
"nodeCount": 1
97+
},
98+
"batchSettings": {
99+
"computeId": "some compute",
100+
"errorThreshold": 5,
101+
"retrySettings": {
102+
"maximumRetries": 0,
103+
"timeoutInSeconds": 30
104+
},
105+
"partitioningScheme": {
106+
"partitioningKey": null,
107+
"miniBatchSize": 20
108+
},
109+
"loggingLevel": "Info",
110+
"outputConfiguration": {
111+
"outputAction": "AppendRow",
112+
"appendRowFileName": null
113+
}
114+
},
115+
"description": "Testing deployment creation",
116+
"properties": {
117+
"description": "string"
118+
},
119+
"modelId": "some model",
120+
"codeConfiguration": {
121+
"commandType": "Command",
122+
"codeArtifactId": "some code artifact",
123+
"command": [
124+
"batch_scoring.py"
125+
]
126+
},
127+
"environmentId": "some environment",
128+
"provisioningState": "Succeeded"
129+
}
130+
}
131+
}
132+
}
133+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "resourceGroup-1234",
5+
"workspaceName": "testworkspace",
6+
"api-version": "2020-09-01-preview",
7+
"endpointName": "testBatchEndpoint",
8+
"properties": {
9+
"location": "westus2euap",
10+
"tags": {},
11+
"properties": {
12+
"name": "test9301",
13+
"description": "Testing pipeline endpoint creation",
14+
"authMode": "AMLTokenAuth",
15+
"trafficRules": "{'testDeployment1': 100, 'testDeployment2': 0}",
16+
"computeConfiguration": {
17+
"computeType": "AMLCompute"
18+
}
19+
}
20+
}
21+
},
22+
"responses": {
23+
"200": {
24+
"body": {
25+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/batchEndpoints/testEndpointName",
26+
"name": "testBatchEndpoint",
27+
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints",
28+
"location": "westus2euap",
29+
"tags": {},
30+
"properties": {
31+
"authMode": "AMLTokenAuth",
32+
"provisioningState": "Succeeded",
33+
"trafficRules": {
34+
"testDeployment1": 100,
35+
"testDeployment2": 0
36+
},
37+
"computeConfiguration": {
38+
"computeType": "AMLCompute"
39+
},
40+
"properties": {
41+
"description": "Testing pipeline endpoint creation"
42+
}
43+
}
44+
}
45+
},
46+
"201": {
47+
"body": {
48+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/batchEndpoints/testEndpointName",
49+
"name": "testBatchEndpoint",
50+
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints",
51+
"location": "westus2euap",
52+
"tags": {},
53+
"properties": {
54+
"authMode": "AMLTokenAuth",
55+
"provisioningState": "Succeeded",
56+
"trafficRules": {
57+
"testDeployment1": 100,
58+
"testDeployment2": 0
59+
},
60+
"computeConfiguration": {
61+
"computeType": "AMLCompute"
62+
},
63+
"properties": {
64+
"description": "Testing pipeline endpoint creation"
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "resourceGroup-1234",
5+
"workspaceName": "testworkspace",
6+
"endpointName": "testBatchEndpoint",
7+
"deploymentId": "testBatchDeployment",
8+
"api-version": "2020-12-01-preview"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "resourceGroup-1234",
5+
"workspaceName": "testworkspace",
6+
"endpointName": "testBatchEndpoint",
7+
"api-version": "2020-12-01-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "resourceGroup-1234",
5+
"workspaceName": "testworkspace",
6+
"endpointName": "testBatchEndpoint",
7+
"deploymentId": "testBatchDeployment",
8+
"api-version": "2020-12-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/batchEndpoints/testEndpointName/deployments/testBatchDeployment",
14+
"name": "testBatchDeployment",
15+
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments",
16+
"location": "westus2euap",
17+
"tags": {},
18+
"properties": {
19+
"scaleSettings": {
20+
"nodeCount": 1
21+
},
22+
"batchSettings": {
23+
"computeId": "some compute",
24+
"errorThreshold": 5,
25+
"retrySettings": {
26+
"maximumRetries": 0,
27+
"timeoutInSeconds": 30
28+
},
29+
"partitioningScheme": {
30+
"partitioningKey": null,
31+
"miniBatchSize": 20
32+
},
33+
"loggingLevel": "Info",
34+
"outputConfiguration": {
35+
"outputAction": "AppendRow",
36+
"appendRowFileName": null
37+
}
38+
},
39+
"description": "Testing deployment creation",
40+
"properties": {
41+
"description": "string"
42+
},
43+
"modelId": "some model",
44+
"codeConfiguration": {
45+
"commandType": "Command",
46+
"codeArtifactId": "some code artifact",
47+
"command": [
48+
"batch_scoring.py"
49+
]
50+
},
51+
"environmentId": "some environment",
52+
"provisioningState": "Succeeded"
53+
}
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)