You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying a machine learning model to a managed online endpoint, you can secure communication with the online endpoint by using [private endpoints](../private-link/private-endpoint-overview.md). Using a private endpoint with online endpoints is currently a preview feature.
@@ -29,7 +31,10 @@ The following diagram shows how communications flow through private endpoints to
29
31
30
32
* To use Azure machine learning, you must have an Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/) today.
31
33
32
-
* You must install and configure the Azure CLI and ML extension. For more information, see [Install, set up, and use the CLI (v2)](how-to-configure-cli.md).
34
+
* You must install and configure the Azure CLI and ML extension or the AzureML Python SDK v2. For more information, see the following articles:
35
+
36
+
*[Install, set up, and use the CLI (v2)](how-to-configure-cli.md).
37
+
*[Install the Python SDK v2](https://aka.ms/sdk-v2-install).
33
38
34
39
* You must have an Azure Resource Group, in which you (or the service principal you use) need to have `Contributor` access. You'll have such a resource group if you configured your ML extension per the above article.
35
40
@@ -72,11 +77,30 @@ The following diagram shows how communications flow through private endpoints to
72
77
73
78
To secure scoring requests to the online endpoint to your virtual network, set the `public_network_access` flag for the endpoint to `disabled`:
74
79
80
+
# [Azure CLI](#tab/cli)
81
+
75
82
```azurecli
76
83
az ml online-endpoint create -f endpoint.yml --set public_network_access=disabled
77
84
```
78
85
79
-
When `public_network_access` is `disabled`, inbound scoring requests are received using the [private endpoint of the Azure Machine Learning workspace](./how-to-configure-private-link.md) and the endpoint can't be reached from public networks.
86
+
# [Python SDK](#tab/python)
87
+
88
+
```python
89
+
from azure.ai.ml.entities._common import PublicNetworkAccess
When `public_network_access` is `Disabled`, inbound scoring requests are received using the [private endpoint of the Azure Machine Learning workspace](./how-to-configure-private-link.md) and the endpoint can't be reached from public networks.
80
104
81
105
## Outbound (resource access)
82
106
@@ -90,10 +114,32 @@ The following are the resources that the deployment communicates with over the p
90
114
91
115
When you configure the `egress_public_network_access` to `disabled`, a new private endpoint is created per deployment, per service. For example, if you set the flag to `disabled` for three deployments to an online endpoint, nine private endpoints are created. Each deployment would have three private endpoints that are used to communicate with the workspace, blob, and container registry.
92
116
117
+
# [Azure CLI](#tab/cli)
118
+
93
119
```azurecli
94
120
az ml online-deployment create -f deployment.yml --set egress_public_network_access=disabled
0 commit comments