Skip to content

Commit c7d3b5f

Browse files
committed
testing
1 parent 824dbaa commit c7d3b5f

File tree

1 file changed

+35
-40
lines changed

1 file changed

+35
-40
lines changed

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

Lines changed: 35 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ You get several hub default resources in your resource group. You need to config
2525
- Establish private endpoint connection to hub default resources. You need to have both a blob and file private endpoint for the default storage account.
2626
- If your storage account is private, [assign roles](#private-storage-configuration) to allow access.
2727

28-
2928
## Prerequisites
3029

3130
* 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
3736

3837
## Create a hub that uses a private endpoint
3938

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__:
4140

42-
# [Azure portal](#tab/azure-portal)
41+
:::zone pivot="azure-portal"
4342

4443
> [!NOTE]
4544
> 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
5554

5655
1. Input required fields. When selecting the __Region__, select the same region as your virtual network.
5756

58-
# [Azure CLI](#tab/cli)
57+
:::zone-end
58+
59+
:::zone pivot="cli"
5960

6061
> [!NOTE]
6162
> 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 \
9596
--name myzonegroup \
9697
--private-dns-zone privatelink.api.azureml.ms \
9798
--zone-name privatelink.api.azureml.ms
98-
99-
# Add privatelink.notebooks.azure.net
100-
az network private-dns zone create \
101-
-g <resource-group-name> \
102-
--name privatelink.notebooks.azure.net
103-
104-
az network private-dns link vnet create \
105-
-g <resource-group-name> \
106-
--zone-name privatelink.notebooks.azure.net \
107-
--name <link-name> \
108-
--virtual-network <vnet-name> \
109-
--registration-enabled false
110-
111-
az network private-endpoint dns-zone-group add \
112-
-g <resource-group-name> \
113-
--endpoint-name <private-endpoint-name> \
114-
--name myzonegroup \
115-
--private-dns-zone privatelink.notebooks.azure.net \
116-
--zone-name privatelink.notebooks.azure.net
11799
```
118100

101+
:::zone-end
102+
119103
---
120104

121105
## Add a private endpoint to a hub
122106

123107
Use one of the following methods to add a private endpoint to an existing hub:
124108

125-
# [Azure portal](#tab/azure-portal)
109+
:::zone pivot="azure-portal"
126110

127111
1. From the [Azure portal](https://portal.azure.com), select your hub.
128112
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:
131115

132116
1. When going through the forms to create a private endpoint, be sure to:
133117

134-
- From __Basics__, select the same the __Region__ as your virtual network.
118+
- From __Basics__, select the same __Region__ as your virtual network.
135119
- From __Resource__, select `amlworkspace` as the __target sub-resource__.
136120
- From the __Virtual Network__ form, select the virtual network and subnet that you want to connect to.
137121

138122
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.
139123

140-
# [Azure CLI](#tab/cli)
124+
:::zone-end
125+
126+
:::zone pivot="cli"
141127

142128
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.
143129

@@ -159,11 +145,11 @@ To create the private DNS zone entries for the workspace, use the following comm
159145
# Add privatelink.api.azureml.ms
160146
az network private-dns zone create \
161147
-g <resource-group-name> \
162-
--name 'privatelink.api.azureml.ms'
148+
--name privatelink.api.azureml.ms
163149
164150
az network private-dns link vnet create \
165151
-g <resource-group-name> \
166-
--zone-name 'privatelink.api.azureml.ms' \
152+
--zone-name privatelink.api.azureml.ms \
167153
--name <link-name> \
168154
--virtual-network <vnet-name> \
169155
--registration-enabled false
@@ -172,17 +158,17 @@ az network private-endpoint dns-zone-group create \
172158
-g <resource-group-name> \
173159
--endpoint-name <private-endpoint-name> \
174160
--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
177163
178164
# Add privatelink.notebooks.azure.net
179165
az network private-dns zone create \
180166
-g <resource-group-name> \
181-
--name 'privatelink.notebooks.azure.net'
167+
--name privatelink.notebooks.azure.net
182168
183169
az network private-dns link vnet create \
184170
-g <resource-group-name> \
185-
--zone-name 'privatelink.notebooks.azure.net' \
171+
--zone-name privatelink.notebooks.azure.net \
186172
--name <link-name> \
187173
--virtual-network <vnet-name> \
188174
--registration-enabled false
@@ -191,10 +177,12 @@ az network private-endpoint dns-zone-group add \
191177
-g <resource-group-name> \
192178
--endpoint-name <private-endpoint-name> \
193179
--name myzonegroup \
194-
--private-dns-zone 'privatelink.notebooks.azure.net' \
195-
--zone-name 'privatelink.notebooks.azure.net'
180+
--private-dns-zone privatelink.notebooks.azure.net \
181+
--zone-name privatelink.notebooks.azure.net
196182
```
197183

184+
:::zone-end
185+
198186
---
199187

200188
## Remove a private endpoint
@@ -206,24 +194,28 @@ You can remove one or all private endpoints for a hub. Removing a private endpoi
206194
207195
To remove a private endpoint, use the following information:
208196

209-
# [Azure portal](#tab/azure-portal)
197+
:::zone pivot="azure-portal"
210198

211199
1. From the [Azure portal](https://portal.azure.com), select your hub.
212200
1. From the left side of the page, select __Settings__, __Networking__, and then select the __Private endpoint connections__ tab.
213201
1. Select the endpoint to remove and then select __Remove__.
214202

215203
:::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.":::
216204

217-
# [Azure CLI](#tab/cli)
205+
:::zone-end
206+
207+
:::zone pivot="cli"
218208

219209
When using the Azure CLI, use the following command to remove the private endpoint:
220210

221211
```azurecli
222212
az network private-endpoint delete \
223213
--name <private-endpoint-name> \
224-
--resource-group <resource-group-name> \
214+
--resource-group <resource-group-name>
225215
```
226216

217+
:::zone-end
218+
227219
---
228220

229221
## Enable public access
@@ -235,13 +227,15 @@ In some situations, you might want to allow someone to connect to your secured h
235227
236228
To enable public access, use the following steps:
237229

238-
# [Azure portal](#tab/azure-portal)
230+
:::zone pivot="azure-portal"
239231

240232
1. From the [Azure portal](https://portal.azure.com), select your hub.
241233
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
242234
1. Select __Enabled from all networks__, and then select __Save__.
243235

244-
# [Azure CLI](#tab/cli)
236+
:::zone-end
237+
238+
:::zone pivot="cli"
245239

246240
Use the following Azure CLI command to enable public access:
247241

@@ -255,8 +249,9 @@ If you receive an error that the `ml` command isn't found, use the following com
255249
az extension add --name ml
256250
```
257251

258-
---
252+
:::zone-end
259253

254+
---
260255

261256
## Private storage configuration
262257

0 commit comments

Comments
 (0)