Skip to content

Commit 74894bf

Browse files
author
Larry Franks
committed
fixes
1 parent a222dff commit 74894bf

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

articles/machine-learning/how-to-secure-online-endpoint.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,15 @@ az ml online-endpoint create -f endpoint.yml --set public_network_access=disable
8686
# [Python SDK](#tab/python)
8787

8888
```python
89-
from azure.ai.ml.entities._common import PublicNetworkAccess
89+
from azure.ai.ml.entities import ManagedOnlineEndpoint
9090

9191
endpoint = ManagedOnlineEndpoint(name='my-online-endpoint',
9292
description='this is a sample online endpoint',
9393
tags={'foo': 'bar'},
9494
auth_mode="key",
95-
public_network_access=PublicNetworkAccess.Disabled
96-
# public_network_access=PublicNetworkAccess.Enabled
97-
)
98-
99-
ml_client.begin_create_or_update(endpoint)
95+
public_network_access="disabled"
96+
# public_network_access="enabled"
97+
)
10098
```
10199

102100
---

articles/machine-learning/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
href: how-to-deploy-managed-online-endpoints.md
504504
- name: Safe rollout for online endpoints (CLI)
505505
href: how-to-safely-rollout-managed-endpoints.md
506-
- name: Safe rollout for online endpoints (SDK preview)
506+
- name: Safe rollout for online endpoints (SDK)
507507
href: how-to-safely-rollout-managed-endpoints-sdk-v2.md
508508
- name: Deployment scenarios
509509
items:
@@ -545,7 +545,7 @@
545545
items:
546546
- name: Batch scoring with batch endpoints (CLI)
547547
href: how-to-use-batch-endpoint.md
548-
- name: Batch scoring with batch endpoints (SDK preview)
548+
- name: Batch scoring with batch endpoints (SDK)
549549
href: how-to-use-batch-endpoint-sdk-v2.md
550550
- name: Batch endpoints in studio
551551
href: how-to-use-batch-endpoints-studio.md

0 commit comments

Comments
 (0)