Skip to content

Commit fb51b00

Browse files
Merge pull request #253069 from msakande/adding-missing-code-snippets
adding code until deleted file is restored
2 parents 879ed23 + 3d01e84 commit fb51b00

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

articles/machine-learning/how-to-deploy-custom-container.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,44 @@ You can configure your cloud deployment using YAML. Take a look at the sample YA
116116

117117
__tfserving-endpoint.yml__
118118

119+
```yml
120+
$schema: https://azuremlsdk2.blob.core.windows.net/latest/managedOnlineEndpoint.schema.json
121+
name: tfserving-endpoint
122+
auth_mode: aml_token
123+
```
124+
119125
__tfserving-deployment.yml__
120126
127+
```yml
128+
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
129+
name: tfserving-deployment
130+
endpoint_name: tfserving-endpoint
131+
model:
132+
name: tfserving-mounted
133+
version: {{MODEL_VERSION}}
134+
path: ./half_plus_two
135+
environment_variables:
136+
MODEL_BASE_PATH: /var/azureml-app/azureml-models/tfserving-mounted/{{MODEL_VERSION}}
137+
MODEL_NAME: half_plus_two
138+
environment:
139+
#name: tfserving
140+
#version: 1
141+
image: docker.io/tensorflow/serving:latest
142+
inference_config:
143+
liveness_route:
144+
port: 8501
145+
path: /v1/models/half_plus_two
146+
readiness_route:
147+
port: 8501
148+
path: /v1/models/half_plus_two
149+
scoring_route:
150+
port: 8501
151+
path: /v1/models/half_plus_two:predict
152+
instance_type: Standard_DS3_v2
153+
instance_count: 1
154+
```
155+
156+
121157
# [Python SDK](#tab/python)
122158
123159
### Connect to Azure Machine Learning workspace

0 commit comments

Comments
 (0)