Skip to content

Commit 1a467c5

Browse files
committed
resolve merge conflicts
1 parent fb0e515 commit 1a467c5

File tree

1 file changed

+63
-57
lines changed

1 file changed

+63
-57
lines changed

articles/ai-studio/how-to/configure-private-link.md

Lines changed: 63 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
---
2-
title: How to configure a private link for Azure AI
2+
title: How to configure a private link for Azure AI hub
33
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.
55
manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.custom: ignite-2023, devx-track-azurecli
88
ms.topic: how-to
9-
ms.date: 02/13/2024
9+
ms.date: 04/10/2024
1010
ms.reviewer: jhirono
1111
ms.author: larryfr
1212
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.
1314
---
1415

15-
# How to configure a private link for Azure AI
16+
# How to configure a private link for Azure AI hub
1617

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).
1819

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":::
2021

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.
2223

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.
2726
- [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.
2928

3029

3130
## Prerequisites
3231

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.
3433

3534
> [!IMPORTANT]
3635
> 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
4140

4241
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__:
4342

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+
4450
# [Azure CLI](#tab/cli)
4551

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.
4759

4860
```azurecli-interactive
4961
az network private-endpoint create \
@@ -97,22 +109,25 @@ az network private-endpoint dns-zone-group add \
97109
--zone-name privatelink.notebooks.azure.net
98110
```
99111

100-
# [Azure portal](#tab/azure-portal)
112+
---
101113

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
106115

107-
---
116+
Use one of the following methods to add a private endpoint to an existing Azure AI hub:
108117

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.
110125

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.
112127

113128
# [Azure CLI](#tab/cli)
114129

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.
116131

117132
```azurecli-interactive
118133
az network private-endpoint create \
@@ -166,27 +181,23 @@ az network private-endpoint dns-zone-group add \
166181
--zone-name 'privatelink.notebooks.azure.net'
167182
```
168183

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-
179184
---
180185

181186
## Remove a private endpoint
182187

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.
184189

185190
> [!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.
187192
188193
To remove a private endpoint, use the following information:
189194

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+
190201
# [Azure CLI](#tab/cli)
191202

192203
When using the Azure CLI, use the following command to remove the private endpoint:
@@ -197,50 +208,44 @@ az network private-endpoint delete \
197208
--resource-group <resource-group-name> \
198209
```
199210

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-
206211
---
207212

208213
## Enable public access
209214

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.
211216

212217
> [!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.
214219
215220
To enable public access, use the following steps:
216221

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-
221222
# [Azure portal](#tab/azure-portal)
222223

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.
224225
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
225226
1. Select __Enabled from all networks__, and then select __Save__.
226227

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+
227232
---
228233

229234
## Managed identity configuration
230235

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.
232237

233238
| Role | Managed Identity | Resource | Purpose | Reference |
234239
|--|--|--|--|--|
235-
| `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) |
236241
| `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). |
238243

239244
## Custom DNS configuration
240245

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.
242247

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.
244249

245250
* `<AI-STUDIO-GUID>.workspace.<region>.cert.api.azureml.ms`
246251
* `<AI-PROJECT-GUID>.workspace.<region>.cert.api.azureml.ms`
@@ -259,17 +264,18 @@ If you need to configure custom dns server without dns forwarding, the following
259264
260265
* `<managed online endpoint name>.<region>.inference.ml.azure.com` - Used by managed online endpoints
261266

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.
263269

264270
## Limitations
265271

266-
* Private Azure AI services and Azure AI Search aren't supported.
272+
* Private Azure AI Services and Azure AI Search aren't supported.
267273
* 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.
269275

270276
## Next steps
271277

272-
- [Create a project](create-projects.md)
278+
- [Create an Azure AI project](create-projects.md)
273279
- [Learn more about Azure AI Studio](../what-is-ai-studio.md)
274280
- [Learn more about Azure AI hub resources](../concepts/ai-resources.md)
275281
- [Troubleshoot secure connectivity to a project](troubleshoot-secure-connection-project.md)

0 commit comments

Comments
 (0)