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
+57-55Lines changed: 57 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,36 +1,37 @@
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
18
[!INCLUDE [Azure AI Studio preview](../includes/preview-ai-studio.md)]
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
+
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).
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
+
:::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":::
22
23
23
-
You get several Azure AI default resources in your resource group. You need to configure following network isolation configurations.
24
+
You get several Azure AI hub default resources in your resource group. You need to configure following network isolation configurations.
24
25
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.
26
+
- Disable public network access of Azure AI hub default resources such as Azure Storage, Azure Key Vault, and Azure Container Registry.
27
+
- 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
28
-[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.
29
+
- Azure AI Services and Azure AI Search should be public.
29
30
30
31
31
32
## Prerequisites
32
33
33
-
* You must have an existing virtual network to create the private endpoint in.
34
+
* You must have an existing Azure Virtual Network to create the private endpoint in.
34
35
35
36
> [!IMPORTANT]
36
37
> 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,6 +42,13 @@ You get several Azure AI default resources in your resource group. You need to c
41
42
42
43
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
44
45
+
# [Azure portal](#tab/azure-portal)
46
+
47
+
1. From the [Azure portal](https://portal.azure.com), go to Azure AI Studio and choose __+ New Azure AI__.
48
+
1. Choose network isolation mode in __Networking__ tab.
49
+
1. Scroll down to __Workspace Inbound access__ and choose __+ Add__.
50
+
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
51
+
44
52
# [Azure CLI](#tab/cli)
45
53
46
54
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).
@@ -49,7 +57,7 @@ Create your Azure AI hub resource with the Azure AI CLI. Run the following comma
49
57
ai init
50
58
```
51
59
52
-
After creating the Azure AI, 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.
60
+
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.
53
61
54
62
```azurecli-interactive
55
63
az network private-endpoint create \
@@ -103,22 +111,25 @@ az network private-endpoint dns-zone-group add \
103
111
--zone-name privatelink.notebooks.azure.net
104
112
```
105
113
106
-
# [Azure portal](#tab/azure-portal)
114
+
---
107
115
108
-
1. From the [Azure portal](https://portal.azure.com), go to Azure AI Studio and choose __+ New Azure AI__.
109
-
1. Choose network isolation mode in __Networking__ tab.
110
-
1. Scroll down to __Workspace Inbound access__ and choose __+ Add__.
111
-
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
116
+
## Add a private endpoint to an Azure AI hub
112
117
113
-
---
118
+
Use one of the following methods to add a private endpoint to an existing Azure AI hub:
114
119
115
-
## Add a private endpoint to an Azure AI
120
+
#[Azure portal](#tab/azure-portal)
116
121
117
-
Use one of the following methods to add a private endpoint to an existing Azure AI:
122
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
123
+
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
124
+
1. When selecting the __Region__, select the same region as your virtual network.
125
+
1. When selecting __Resource type__, use `azuremlworkspace`.
126
+
1. Set the __Resource__ to your workspace name.
127
+
128
+
Finally, select __Create__ to create the private endpoint.
118
129
119
130
# [Azure CLI](#tab/cli)
120
131
121
-
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.
132
+
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.
122
133
123
134
```azurecli-interactive
124
135
az network private-endpoint create \
@@ -172,27 +183,23 @@ az network private-endpoint dns-zone-group add \
172
183
--zone-name 'privatelink.notebooks.azure.net'
173
184
```
174
185
175
-
# [Azure portal](#tab/azure-portal)
176
-
177
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
178
-
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
179
-
1. When selecting the __Region__, select the same region as your virtual network.
180
-
1. When selecting __Resource type__, use azuremlworkspace.
181
-
1. Set the __Resource__ to your workspace name.
182
-
183
-
Finally, select __Create__ to create the private endpoint.
184
-
185
186
---
186
187
187
188
## Remove a private endpoint
188
189
189
-
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.
190
+
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.
190
191
191
192
> [!WARNING]
192
-
> 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.
193
+
> 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.
193
194
194
195
To remove a private endpoint, use the following information:
195
196
197
+
# [Azure portal](#tab/azure-portal)
198
+
199
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
200
+
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
201
+
1. Select the endpoint to remove and then select __Remove__.
202
+
196
203
# [Azure CLI](#tab/cli)
197
204
198
205
When using the Azure CLI, use the following command to remove the private endpoint:
@@ -203,50 +210,44 @@ az network private-endpoint delete \
203
210
--resource-group <resource-group-name> \
204
211
```
205
212
206
-
# [Azure portal](#tab/azure-portal)
207
-
208
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
209
-
1. From the left side of the page, select __Networking__ and then select the __Private endpoint connections__ tab.
210
-
1. Select the endpoint to remove and then select __Remove__.
211
-
212
213
---
213
214
214
215
## Enable public access
215
216
216
-
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.
217
+
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.
217
218
218
219
> [!IMPORTANT]
219
-
> 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.
220
+
> 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.
220
221
221
222
To enable public access, use the following steps:
222
223
223
-
# [Azure CLI](#tab/cli)
224
-
225
-
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 name as workspace name in Azure Machine Learning CLI.
226
-
227
224
# [Azure portal](#tab/azure-portal)
228
225
229
-
1. From the [Azure portal](https://portal.azure.com), select your Azure AI.
226
+
1. From the [Azure portal](https://portal.azure.com), select your Azure AI hub.
230
227
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
231
228
1. Select __Enabled from all networks__, and then select __Save__.
232
229
230
+
# [Azure CLI](#tab/cli)
231
+
232
+
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.
233
+
233
234
---
234
235
235
236
## Managed identity configuration
236
237
237
-
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.
238
+
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)|
242
+
|`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)|
242
243
|`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)|
243
-
|`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)|
244
+
|`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). |
244
245
245
246
## Custom DNS configuration
246
247
247
-
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.
248
+
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.
248
249
249
-
If you need to configure custom dns server without dns forwarding, the following is the required A records.
250
+
If you need to configure custom DNS server without DNS forwarding, use the following patterns for the required A records.
@@ -265,17 +266,18 @@ If you need to configure custom dns server without dns forwarding, the following
265
266
266
267
*`<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
267
268
268
-
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.
269
+
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.
270
+
To check AI-PROJECT-GUID, go to the Azure portal, select your Azure AI project, settings, properties, and the workspace ID is displayed.
269
271
270
272
## Limitations
271
273
272
-
* Private Azure AI services and Azure AI Search aren't supported.
274
+
* Private Azure AI Services and Azure AI Search aren't supported.
273
275
* The "Add your data" feature in the Azure AI Studio playground doesn't support private storage account.
274
-
* 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.
276
+
* 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.
275
277
276
278
## Next steps
277
279
278
-
-[Create a project](create-projects.md)
280
+
-[Create an Azure AI project](create-projects.md)
279
281
-[Learn more about Azure AI Studio](../what-is-ai-studio.md)
280
282
-[Learn more about Azure AI hub resources](../concepts/ai-resources.md)
281
283
-[Troubleshoot secure connectivity to a project](troubleshoot-secure-connection-project.md)
0 commit comments