Skip to content

Commit 1ddb9a4

Browse files
Merge pull request #3928 from TPavanBalaji/patch-21
(AzureCXP) fixes MicrosoftDocs/azure-ai-docs#411212
2 parents 32644fb + ee25d7f commit 1ddb9a4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

articles/machine-learning/how-to-deploy-models-serverless.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,16 +384,9 @@ In this section, you create an endpoint with the name **meta-llama3-8b-qwerty**.
384384
# [Python SDK](#tab/python)
385385
386386
```python
387-
endpoint_name="meta-llama3-8b-qwerty"
388-
389-
serverless_endpoint = ServerlessEndpoint(
390-
name=endpoint_name,
391-
model_id=model_id
392-
)
393-
394-
created_endpoint = client.serverless_endpoints.begin_create_or_update(
395-
serverless_endpoint
396-
).result()
387+
endpoints = ml_client.online_endpoints.list()
388+
for endpoint in endpoints:
389+
print(endpoint.name)
397390
```
398391
399392
# [ARM](#tab/arm)

0 commit comments

Comments
 (0)