Skip to content

Commit fa6f4b6

Browse files
Merge pull request #253219 from msakande/reference-azureml-examples-code
add reference to yml files
2 parents 56c748c + 798d03e commit fa6f4b6

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

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

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -116,43 +116,11 @@ 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-
```
119+
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/online/custom-container/tfserving/half-plus-two/tfserving-endpoint.yml":::
124120

125121
__tfserving-deployment.yml__
126122

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-
123+
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/online/custom-container//tfserving/half-plus-two/tfserving-deployment.yml":::
156124

157125
# [Python SDK](#tab/python)
158126

0 commit comments

Comments
 (0)