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-foundry/how-to/configure-private-link.md
+35-40Lines changed: 35 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@ You get several hub default resources in your resource group. You need to config
25
25
- Establish private endpoint connection to hub default resources. You need to have both a blob and file private endpoint for the default storage account.
26
26
- If your storage account is private, [assign roles](#private-storage-configuration) to allow access.
27
27
28
-
29
28
## Prerequisites
30
29
31
30
* You must have an existing Azure Virtual Network to create the private endpoint in.
@@ -37,9 +36,9 @@ You get several hub default resources in your resource group. You need to config
37
36
38
37
## Create a hub that uses a private endpoint
39
38
40
-
If you are creating a new hub, use the following tabs to select how you are creating the hub (Azure portal or Azure CLI.) Each of these methods __requires an existing virtual network__:
39
+
If you are creating a new hub, use the following methods to create the hub (Azure portal or Azure CLI). Each of these methods __requires an existing virtual network__:
41
40
42
-
# [Azure portal](#tab/azure-portal)
41
+
:::zone pivot="azure-portal"
43
42
44
43
> [!NOTE]
45
44
> The information in this document is only about configuring a private link. For a walkthrough of creating a secure hub in the portal, see [Create a secure hub in the Azure portal](create-secure-ai-hub.md).
@@ -55,7 +54,9 @@ If you are creating a new hub, use the following tabs to select how you are crea
55
54
56
55
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
57
56
58
-
# [Azure CLI](#tab/cli)
57
+
:::zone-end
58
+
59
+
:::zone pivot="cli"
59
60
60
61
> [!NOTE]
61
62
> The information in this section doesn't cover basic hub configuration. For more information, see [Create a hub using the Azure CLI](./develop/create-hub-project-sdk.md?tabs=azurecli).
@@ -95,34 +96,17 @@ az network private-endpoint dns-zone-group create \
Use one of the following methods to add a private endpoint to an existing hub:
124
108
125
-
# [Azure portal](#tab/azure-portal)
109
+
:::zone pivot="azure-portal"
126
110
127
111
1. From the [Azure portal](https://portal.azure.com), select your hub.
128
112
1. From the left side of the page, select __Settings__, __Networking__, and then select the __Private endpoint connections__ tab. Select __+ Private endpoint__.
@@ -131,13 +115,15 @@ Use one of the following methods to add a private endpoint to an existing hub:
131
115
132
116
1. When going through the forms to create a private endpoint, be sure to:
133
117
134
-
- From __Basics__, select the same the __Region__ as your virtual network.
118
+
- From __Basics__, select the same __Region__ as your virtual network.
135
119
- From __Resource__, select `amlworkspace` as the __target sub-resource__.
136
120
- From the __Virtual Network__ form, select the virtual network and subnet that you want to connect to.
137
121
138
122
1. After populating the forms with any additional network configurations you require, use the __Review + create__ tab to review your settings and select __Create__ to create the private endpoint.
139
123
140
-
# [Azure CLI](#tab/cli)
124
+
:::zone-end
125
+
126
+
:::zone pivot="cli"
141
127
142
128
Use the [Azure networking CLI commands](/cli/azure/network/private-endpoint#az-network-private-endpoint-create) to create a private link endpoint for the hub.
143
129
@@ -159,11 +145,11 @@ To create the private DNS zone entries for the workspace, use the following comm
159
145
# Add privatelink.api.azureml.ms
160
146
az network private-dns zone create \
161
147
-g <resource-group-name> \
162
-
--name 'privatelink.api.azureml.ms'
148
+
--name privatelink.api.azureml.ms
163
149
164
150
az network private-dns link vnet create \
165
151
-g <resource-group-name> \
166
-
--zone-name 'privatelink.api.azureml.ms' \
152
+
--zone-name privatelink.api.azureml.ms \
167
153
--name <link-name> \
168
154
--virtual-network <vnet-name> \
169
155
--registration-enabled false
@@ -172,17 +158,17 @@ az network private-endpoint dns-zone-group create \
172
158
-g <resource-group-name> \
173
159
--endpoint-name <private-endpoint-name> \
174
160
--name myzonegroup \
175
-
--private-dns-zone 'privatelink.api.azureml.ms' \
176
-
--zone-name 'privatelink.api.azureml.ms'
161
+
--private-dns-zone privatelink.api.azureml.ms \
162
+
--zone-name privatelink.api.azureml.ms
177
163
178
164
# Add privatelink.notebooks.azure.net
179
165
az network private-dns zone create \
180
166
-g <resource-group-name> \
181
-
--name 'privatelink.notebooks.azure.net'
167
+
--name privatelink.notebooks.azure.net
182
168
183
169
az network private-dns link vnet create \
184
170
-g <resource-group-name> \
185
-
--zone-name 'privatelink.notebooks.azure.net' \
171
+
--zone-name privatelink.notebooks.azure.net \
186
172
--name <link-name> \
187
173
--virtual-network <vnet-name> \
188
174
--registration-enabled false
@@ -191,10 +177,12 @@ az network private-endpoint dns-zone-group add \
@@ -206,24 +194,28 @@ You can remove one or all private endpoints for a hub. Removing a private endpoi
206
194
207
195
To remove a private endpoint, use the following information:
208
196
209
-
# [Azure portal](#tab/azure-portal)
197
+
:::zone pivot="azure-portal"
210
198
211
199
1. From the [Azure portal](https://portal.azure.com), select your hub.
212
200
1. From the left side of the page, select __Settings__, __Networking__, and then select the __Private endpoint connections__ tab.
213
201
1. Select the endpoint to remove and then select __Remove__.
214
202
215
203
:::image type="content" source="../media/how-to/network/remove-private-endpoint.png" alt-text="Screenshot of a selected private endpoint with the remove option highlighted.":::
216
204
217
-
# [Azure CLI](#tab/cli)
205
+
:::zone-end
206
+
207
+
:::zone pivot="cli"
218
208
219
209
When using the Azure CLI, use the following command to remove the private endpoint:
220
210
221
211
```azurecli
222
212
az network private-endpoint delete \
223
213
--name <private-endpoint-name> \
224
-
--resource-group <resource-group-name> \
214
+
--resource-group <resource-group-name>
225
215
```
226
216
217
+
:::zone-end
218
+
227
219
---
228
220
229
221
## Enable public access
@@ -235,13 +227,15 @@ In some situations, you might want to allow someone to connect to your secured h
235
227
236
228
To enable public access, use the following steps:
237
229
238
-
# [Azure portal](#tab/azure-portal)
230
+
:::zone pivot="azure-portal"
239
231
240
232
1. From the [Azure portal](https://portal.azure.com), select your hub.
241
233
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
242
234
1. Select __Enabled from all networks__, and then select __Save__.
243
235
244
-
# [Azure CLI](#tab/cli)
236
+
:::zone-end
237
+
238
+
:::zone pivot="cli"
245
239
246
240
Use the following Azure CLI command to enable public access:
247
241
@@ -255,8 +249,9 @@ If you receive an error that the `ml` command isn't found, use the following com
0 commit comments