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
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/configure-private-link.md
+63-57Lines changed: 63 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,35 @@
1
1
---
2
-
title: How to configure a private link for Azure AI
2
+
title: How to configure a private link for Azure AI hub
3
3
titleSuffix: Azure AI Studio
4
-
description: Learn how to configure a private link for Azure AI
4
+
description: Learn how to configure a private link for Azure AI hub. A private link is used to secure communication with the AI hub.
5
5
manager: scottpolly
6
6
ms.service: azure-ai-studio
7
7
ms.custom: ignite-2023, devx-track-azurecli
8
8
ms.topic: how-to
9
-
ms.date: 02/13/2024
9
+
ms.date: 04/10/2024
10
10
ms.reviewer: jhirono
11
11
ms.author: larryfr
12
12
author: Blackmist
13
+
# Customer intent: As an admin, I want to configure a private link for Azure AI hub so that I can secure my Azure AI hub resources.
13
14
---
14
15
15
-
# How to configure a private link for Azure AI
16
+
# How to configure a private link for Azure AI hub
16
17
17
-
[!INCLUDE [Azure AI Studio preview](../includes/preview-ai-studio.md)]
18
+
We have two network isolation aspects. One is the network isolation to access an Azure AI hub. Another is the network isolation of computing resources in your Azure AI hub and Azure AI projects such as compute instances, serverless, and managed online endpoints. This article explains the former highlighted in the diagram. You can use private link to establish the private connection to your Azure AI hub and its default resources. This article is for Azure AI Studio (AI hub and AI projects). For information on Azure AI Services, see the [Azure AI Services documentation](/azure/ai-services/cognitive-services-virtual-networks).
18
19
19
-
We have two network isolation aspects. One is the network isolation to access an Azure AI. Another is the network isolation of computing resources in your Azure AI and Azure AI projects such as Compute Instance, Serverless and Managed Online Endpoint. This document explains the former highlighted in the diagram. You can use private link to establish the private connection to your Azure AI and its default resources. This article is for Azure AI. For information on Azure AI Services, see the [Azure AI Services documentation](/azure/ai-services/cognitive-services-virtual-networks).
20
+
:::image type="content" source="../media/how-to/network/azure-ai-network-inbound.svg" alt-text="Diagram of Azure AI hub network isolation." lightbox="../media/how-to/network/azure-ai-network-inbound.png":::
20
21
21
-
:::image type="content" source="../media/how-to/network/azure-ai-network-inbound.svg" alt-text="Diagram of Azure AI network isolation." lightbox="../media/how-to/network/azure-ai-network-inbound.png":::
22
+
You get several Azure AI hub default resources in your resource group. You need to configure following network isolation configurations.
22
23
23
-
You get several Azure AI default resources in your resource group. You need to configure following network isolation configurations.
24
-
25
-
- Disable public network access flag of Azure AI default resources such as Storage, Key Vault, Container Registry.
26
-
- Establish private endpoint connection to Azure AI default resource. Note that you need to have blob and file PE for the default storage account.
24
+
- Disable public network access of Azure AI hub default resources such as Azure Storage, Azure Key Vault, and Azure Container Registry.
25
+
- Establish private endpoint connection to Azure AI hub default resources. You need to have both a blob and file private endpoint for the default storage account.
27
26
-[Managed identity configurations](#managed-identity-configuration) to allow Azure AI hub resources access your storage account if it's private.
28
-
- Azure AI services and Azure AI Search should be public.
27
+
- Azure AI Services and Azure AI Search should be public.
29
28
30
29
31
30
## Prerequisites
32
31
33
-
* You must have an existing virtual network to create the private endpoint in.
32
+
* You must have an existing Azure Virtual Network to create the private endpoint in.
34
33
35
34
> [!IMPORTANT]
36
35
> We do not recommend using the 172.17.0.0/16 IP address range for your VNet. This is the default subnet range used by the Docker bridge network or on-premises.
@@ -41,9 +40,22 @@ You get several Azure AI default resources in your resource group. You need to c
41
40
42
41
Use one of the following methods to create an Azure AI hub resource with a private endpoint. Each of these methods __requires an existing virtual network__:
43
42
43
+
# [Azure portal](#tab/azure-portal)
44
+
45
+
1. From the [Azure portal](https://portal.azure.com), go to Azure AI Studio and choose __+ New Azure AI__.
46
+
1. Choose network isolation mode in __Networking__ tab.
47
+
1. Scroll down to __Workspace Inbound access__ and choose __+ Add__.
48
+
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
49
+
44
50
# [Azure CLI](#tab/cli)
45
51
46
-
After creating the Azure AI studio hub, use the [Azure networking CLI commands](/cli/azure/network/private-endpoint#az-network-private-endpoint-create) to create a private link endpoint for the Azure AI.
52
+
Create your Azure AI hub resource with the Azure AI CLI. Run the following command and follow the prompts. For more information, see [Get started with Azure AI CLI](cli-install.md).
53
+
54
+
```azurecli-interactive
55
+
ai init
56
+
```
57
+
58
+
After creating the Azure AI hub, use the [Azure networking CLI commands](/cli/azure/network/private-endpoint#az-network-private-endpoint-create) to create a private link endpoint for the Azure AI.
47
59
48
60
```azurecli-interactive
49
61
az network private-endpoint create \
@@ -97,22 +109,25 @@ az network private-endpoint dns-zone-group add \
97
109
--zone-name privatelink.notebooks.azure.net
98
110
```
99
111
100
-
# [Azure portal](#tab/azure-portal)
112
+
---
101
113
102
-
1. From the [Azure portal](https://portal.azure.com), go to Azure AI Studio and choose __+ New Azure AI__.
103
-
1. Choose network isolation mode in __Networking__ tab.
104
-
1. Scroll down to __Workspace Inbound access__ and choose __+ Add__.
105
-
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
114
+
## Add a private endpoint to an Azure AI hub
106
115
107
-
---
116
+
Use one of the following methods to add a private endpoint to an existing Azure AI hub:
108
117
109
-
## Add a private endpoint to an Azure AI
118
+
# [Azure portal](#tab/azure-portal)
119
+
120
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
121
+
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
122
+
1. When selecting the __Region__, select the same region as your virtual network.
123
+
1. When selecting __Resource type__, use `azuremlworkspace`.
124
+
1. Set the __Resource__ to your workspace name.
110
125
111
-
Use one of the following methods to add a private endpoint to an existing Azure AI:
126
+
Finally, select __Create__to create the private endpoint.
112
127
113
128
# [Azure CLI](#tab/cli)
114
129
115
-
Use the [Azure networking CLI commands](/cli/azure/network/private-endpoint#az-network-private-endpoint-create) to create a private link endpoint for the Azure AI.
130
+
Use the [Azure networking CLI commands](/cli/azure/network/private-endpoint#az-network-private-endpoint-create) to create a private link endpoint for the Azure AI hub.
116
131
117
132
```azurecli-interactive
118
133
az network private-endpoint create \
@@ -166,27 +181,23 @@ az network private-endpoint dns-zone-group add \
166
181
--zone-name 'privatelink.notebooks.azure.net'
167
182
```
168
183
169
-
# [Azure portal](#tab/azure-portal)
170
-
171
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
172
-
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
173
-
1. When selecting the __Region__, select the same region as your virtual network.
174
-
1. When selecting __Resource type__, use azuremlworkspace.
175
-
1. Set the __Resource__ to your workspace name.
176
-
177
-
Finally, select __Create__ to create the private endpoint.
178
-
179
184
---
180
185
181
186
## Remove a private endpoint
182
187
183
-
You can remove one or all private endpoints for an Azure AI. Removing a private endpoint removes the Azure AI from the VNet that the endpoint was associated with. Removing the private endpoint might prevent the Azure AI from accessing resources in that VNet, or resources in the VNet from accessing the workspace. For example, if the VNet doesn't allow access to or from the public internet.
188
+
You can remove one or all private endpoints for an Azure AI hub. Removing a private endpoint removes the Azure AI hub from the Azure Virtual Network that the endpoint was associated with. Removing the private endpoint might prevent the Azure AI hub from accessing resources in that virtual network, or resources in the virtual network from accessing the workspace. For example, if the virtual network doesn't allow access to or from the public internet.
184
189
185
190
> [!WARNING]
186
-
> Removing the private endpoints for a workspace __doesn't make it publicly accessible__. To make the workspace publicly accessible, use the steps in the [Enable public access](#enable-public-access) section.
191
+
> Removing the private endpoints for an AI hub __doesn't make it publicly accessible__. To make the AI hub publicly accessible, use the steps in the [Enable public access](#enable-public-access) section.
187
192
188
193
To remove a private endpoint, use the following information:
189
194
195
+
# [Azure portal](#tab/azure-portal)
196
+
197
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
198
+
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
199
+
1. Select the endpoint to remove and then select __Remove__.
200
+
190
201
# [Azure CLI](#tab/cli)
191
202
192
203
When using the Azure CLI, use the following command to remove the private endpoint:
@@ -197,50 +208,44 @@ az network private-endpoint delete \
197
208
--resource-group <resource-group-name> \
198
209
```
199
210
200
-
# [Azure portal](#tab/azure-portal)
201
-
202
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
203
-
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
204
-
1. Select the endpoint to remove and then select __Remove__.
205
-
206
211
---
207
212
208
213
## Enable public access
209
214
210
-
In some situations, you might want to allow someone to connect to your secured Azure AI over a public endpoint, instead of through the VNet. Or you might want to remove the workspace from the VNet and re-enable public access.
215
+
In some situations, you might want to allow someone to connect to your secured Azure AI hub over a public endpoint, instead of through the virtual network. Or you might want to remove the workspace from the virtual network and re-enable public access.
211
216
212
217
> [!IMPORTANT]
213
-
> Enabling public access doesn't remove any private endpoints that exist. All communications between components behind the VNet that the private endpoint(s) connect to are still secured. It enables public access only to the Azure AI, in addition to the private access through any private endpoints.
218
+
> Enabling public access doesn't remove any private endpoints that exist. All communications between components behind the virtual network that the private endpoint(s) connect to are still secured. It enables public access only to the Azure AI hub, in addition to the private access through any private endpoints.
214
219
215
220
To enable public access, use the following steps:
216
221
217
-
# [Azure CLI](#tab/cli)
218
-
219
-
You can use [Azure Machine Learning CLI](../../machine-learning/how-to-configure-private-link.md#enable-public-access). Use your Azure AI name as workspace name in Azure Machine Learning CLI.
220
-
221
222
# [Azure portal](#tab/azure-portal)
222
223
223
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
224
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
224
225
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
225
226
1. Select __Enabled from all networks__, and then select __Save__.
226
227
228
+
# [Azure CLI](#tab/cli)
229
+
230
+
Not available in AI CLI, but you can use [Azure Machine Learning CLI](../../machine-learning/how-to-configure-private-link.md#enable-public-access). Use your Azure AI hub name as workspace name in Azure Machine Learning CLI.
231
+
227
232
---
228
233
229
234
## Managed identity configuration
230
235
231
-
This is required if you make your storage account private. Our services need to read/write data in your private storage account using [Allow Azure services on the trusted services list to access this storage account](../../storage/common/storage-network-security.md#grant-access-to-trusted-azure-services) with below managed identity configurations. Enable system assigned managed identity of Azure AI Service and Azure AI Search, configure role-based access control for each managed identity.
236
+
A manged identity configuration is required if you make your storage account private. Our services need to read/write data in your private storage account using [Allow Azure services on the trusted services list to access this storage account](../../storage/common/storage-network-security.md#grant-access-to-trusted-azure-services) with following managed identity configurations. Enable the system assigned managed identity of Azure AI Service and Azure AI Search, then configure role-based access control for each managed identity.
|`Storage File Data Privileged Contributor`| Azure AI project | Storage Account | Read/Write prompt flow data. |[Prompt flow doc](../../machine-learning/prompt-flow/how-to-secure-prompt-flow.md#secure-prompt-flow-with-workspace-managed-virtual-network)|
240
+
|`Storage File Data Privileged Contributor`| Azure AI project | Storage Account | Read/Write prompt flow data. |[Prompt flow doc](../../machine-learning/prompt-flow/how-to-secure-prompt-flow.md#secure-prompt-flow-with-workspace-managed-virtual-network)|
236
241
|`Storage Blob Data Contributor`| Azure AI Service | Storage Account | Read from input container, write to preprocess result to output container. |[Azure OpenAI Doc](../../ai-services/openai/how-to/managed-identity.md)|
237
-
|`Storage Blob Data Contributor`| Azure AI Search | Storage Account | Read blob and write knowledge store |[Search doc](../../search/search-howto-managed-identities-data-sources.md)|
242
+
|`Storage Blob Data Contributor`| Azure AI Search | Storage Account | Read blob and write knowledge store |[Search doc](../../search/search-howto-managed-identities-data-sources.md). |
238
243
239
244
## Custom DNS configuration
240
245
241
-
See [Azure Machine Learning custom dns doc](../../machine-learning/how-to-custom-dns.md#example-custom-dns-server-hosted-in-vnet) for the DNS forwarding configurations.
246
+
See [Azure Machine Learning custom DNS](../../machine-learning/how-to-custom-dns.md#example-custom-dns-server-hosted-in-vnet) article for the DNS forwarding configurations.
242
247
243
-
If you need to configure custom dns server without dns forwarding, the following is the required A records.
248
+
If you need to configure custom DNS server without DNS forwarding, use the following patterns for the required A records.
@@ -259,17 +264,18 @@ If you need to configure custom dns server without dns forwarding, the following
259
264
260
265
*`<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
261
266
262
-
See [this documentation](../../machine-learning/how-to-custom-dns.md#find-the-ip-addresses) to check your private IP addresses for your A records. To check AI-PROJECT-GUID, go to Azure portal > Your Azure AI Project > JSON View > workspaceId.
267
+
To find the private IP addresses for your A records, see the [Azure Machine Learning custom DNS](../../machine-learning/how-to-custom-dns.md#find-the-ip-addresses) article.
268
+
To check AI-PROJECT-GUID, go to the Azure portal, select your Azure AI project, settings, properties, and the workspace ID is displayed.
263
269
264
270
## Limitations
265
271
266
-
* Private Azure AI services and Azure AI Search aren't supported.
272
+
* Private Azure AI Services and Azure AI Search aren't supported.
267
273
* The "Add your data" feature in the Azure AI Studio playground doesn't support private storage account.
268
-
* You might encounter problems trying to access the private endpoint for your Azure AI if you're using Mozilla Firefox. This problem might be related to DNS over HTTPS in Mozilla Firefox. We recommend using Microsoft Edge or Google Chrome.
274
+
* You might encounter problems trying to access the private endpoint for your Azure AI hub if you're using Mozilla Firefox. This problem might be related to DNS over HTTPS in Mozilla Firefox. We recommend using Microsoft Edge or Google Chrome.
269
275
270
276
## Next steps
271
277
272
-
-[Create a project](create-projects.md)
278
+
-[Create an Azure AI project](create-projects.md)
273
279
-[Learn more about Azure AI Studio](../what-is-ai-studio.md)
274
280
-[Learn more about Azure AI hub resources](../concepts/ai-resources.md)
275
281
-[Troubleshoot secure connectivity to a project](troubleshoot-secure-connection-project.md)
0 commit comments