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-19Lines changed: 35 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,44 +264,60 @@ You can use IP network rules to allow access to your secured hub from specific p
264
264
> [!WARNING]
265
265
> * Enable your endpoint's public network access flag if you want to allow access to your endpoint from specific public internet IP address ranges.
266
266
> * You can only use IPv4 addresses.
267
+
> * If the workspace goes from __Enable from selected IPs__ to __Disabled__ or __Enabled__, the IP ranges will be reset.
267
268
268
269
# [Portal](#tab/azure-portal)
269
270
270
271
1. From the [Azure portal](https://portal.azure.com), select your Azure Machine AI Foundry hub.
271
-
1. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
272
-
1. Select __Enabled from selected IP addresses__, input address ranges and then select __Save__.
272
+
2. From the left side of the page, select __Networking__ and then select the __Public access__ tab.
273
+
3. Select __Enabled from selected IP addresses__, input address ranges and then select __Save__.
273
274
274
275
<!-- :::image type="content" source="./media/how-to-configure-private-link/workspace-public-access-ip-ranges.png" alt-text="Screenshot of the UI to enable access from internet IP ranges."::: -->
275
276
276
277
# [Azure CLI](#tab/cli)
277
278
278
-
279
-
Use the `az ml workspace network-rule` Azure CLI command to manage public access from an IP address or address range:
279
+
Use the `az ml workspace update` Azure CLI command to manage public access from an IP address or address range:
280
280
281
281
> [!TIP]
282
282
> The configurations for the selected IP addresses are stored in the hub's properties, under `network_acls`:
283
283
> ```yml
284
-
> properties:
285
-
> # ...
286
-
> network_acls:
287
-
> description: "The network ACLS for this hub, enforced when public_network_access is set to Enabled."
288
-
> $ref: "3/defintions/networkAcls"
284
+
> name: sample_hub
285
+
> location: centraluseuap
286
+
> display_name: sample hub
287
+
> description: desc
288
+
> public_network_access: enabled
289
+
> network_acls:
290
+
> ip_rules:
291
+
> value: "X.X.X.X/X"
292
+
> value: "X.X.X.X"
293
+
> default_action: Deny
289
294
> ```
290
-
291
-
- __List IP network rules__: `az ml workspace network-rule list --resource-group "myresourcegroup" --workspace-name "myWS" --query ipRules`
292
-
- __Add a rule for a single IP address__: `az ml workspace network-rule add --resource-group "myresourcegroup" --workspace-name "myWS" --ip-address "16.17.18.19"`
293
-
- __Add a rule for an IP address range__: `az ml workspace network-rule add --resource-group "myresourcegroup" --workspace-name "myWS" --ip-address "16.17.18.0/24"`
294
-
- __Remove a rule for a single IP address__: `az ml workspace network-rule remove --resource-group "myresourcegroup" --workspace-name "myWS" --ip-address "16.17.18.19"`
295
-
- __Remove a rule for an IP address range__: `az ml workspace network-rule remove --resource-group "myresourcegroup" --workspace-name "myWS" --ip-address "16.17.18.0/24"`
295
+
296
+
1. Disabled:
297
+
`az ml workspace update -n test-ws -g test-rg --public-network-access Disabled`
You can also use the [Workspace](/python/api/azure-ai-ml/azure.ai.ml.entities.workspace) class from the Azure Machine Learning [Python SDK](/python/api/overview/azure/ai-ml-readme) to define which IP addresses are allowed inbound access:
305
+
You can also use the [Workspace](/python/api/azure-ai-ml/azure.ai.ml.entities.workspace) class from the Azure Machine Learning [Python SDK](https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.entities.networkacls?view=azure-python) to define which IP addresses are allowed inbound access:
0 commit comments