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/machine-learning/how-to-managed-network.md
+78-2Lines changed: 78 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,15 @@ The managed virtual network is preconfigured with [required default rules](#list
54
54
55
55
Before following the steps in this article, make sure you have the following prerequisites:
56
56
57
+
> [!IMPORTANT]
58
+
> To use the information in this article, you must enable this preview feature for your subscription. To check whether it has been registered, or to register it, use the steps in the [Set up preview features in Azure subscription](https://azure/azure-resource-manager/management/preview-features). Depending on whether you use the Azure portal, Azure CLI, or Azure PowerShell, you may need to register the feature with a different name. Use the following table to determine the name of the feature to register:
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
@@ -71,8 +80,6 @@ Before following the steps in this article, make sure you have the following pre
71
80
72
81
* The Azure CLI examples in this article use `ws` to represent the name of the workspace, and `rg` to represent the name of the resource group. Change these values as needed when using the commands with your Azure subscription.
73
82
74
-
75
-
76
83
# [Python](#tab/python)
77
84
78
85
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
@@ -100,6 +107,10 @@ Before following the steps in this article, make sure you have the following pre
100
107
resource_group = "<RESOURCE_GROUP>"
101
108
```
102
109
110
+
# [Azure portal](#tab/portal)
111
+
112
+
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
113
+
103
114
---
104
115
105
116
## Configure a managed virtual network to allow internet outbound
@@ -264,6 +275,28 @@ To configure a managed VNet that allows internet outbound communications, use th
264
275
ml_client.workspaces.begin_update(ws)
265
276
```
266
277
278
+
# [Azure portal](#tab/portal)
279
+
280
+
* __Create a new workspace__:
281
+
282
+
1. Sign in to the [Azure portal](https://ms.azure.com), and choose Azure Machine Learning from Create a resource menu.
283
+
1. Provide the required information on the __Basics__ tab.
284
+
1. From the __Networking__ tab, select __Private with Internet Outbound__.
285
+
286
+
:::image type="content" source="./media/how-to-managed-network/use-managed-network-internet-outbound.png" alt-text="Screenshot of creating a workspace with an internet outbound managed network." lightbox="./media/how-to-managed-network/use-managed-network-internet-outbound.png":::
287
+
288
+
1. Continue creating the workspace as normal.
289
+
290
+
* __Update an existing workspace__:
291
+
292
+
> [!WARNING]
293
+
> Before updating an existing workspace to use a managed virtual network, you must delete all computing resources for the workspace. This includes compute instance, compute cluster, serverless, serverless spark, and managed online endpoints.
294
+
295
+
1. Sign in to the [Azure portal](https://ms.azure.com), and select the Azure Machine Learning workspace that you want to enable managed virtual network isolation for.
296
+
1. Select __Networking__, then select __Private with Internet Outbound__. Select __Save__ to save the changes.
297
+
298
+
:::image type="content" source="./media/how-to-managed-network/update-managed-network-internet-outbound.png" alt-text="Screenshot of updating a workspace to managed network with internet outbound." lightbox="./media/how-to-managed-network/update-managed-network-internet-outbound.png":::
299
+
267
300
---
268
301
269
302
## Configure a managed virtual network to allow only approved outbound
@@ -480,6 +513,28 @@ To configure a managed VNet that allows only approved outbound communications, u
480
513
ml_client.workspaces.begin_update(ws)
481
514
```
482
515
516
+
# [Azure portal](#tab/portal)
517
+
518
+
* __Create a new workspace__:
519
+
520
+
1. Sign in to the [Azure portal](https://ms.azure.com), and choose Azure Machine Learning from Create a resource menu.
521
+
1. Provide the required information on the __Basics__ tab.
522
+
1. From the __Networking__ tab, select __Private with Approved Outbound__.
523
+
524
+
:::image type="content" source="./media/how-to-managed-network/use-managed-network-approved-outbound.png" alt-text="Screenshot of creating a workspace with an approved outbound managed network." lightbox="./media/how-to-managed-network/use-managed-network-approved-outbound.png":::
525
+
526
+
1. Continue creating the workspace as normal.
527
+
528
+
* __Update an existing workspace__:
529
+
530
+
> [!WARNING]
531
+
> Before updating an existing workspace to use a managed virtual network, you must delete all computing resources for the workspace. This includes compute instance, compute cluster, serverless, serverless spark, and managed online endpoints.
532
+
533
+
1. Sign in to the [Azure portal](https://ms.azure.com), and select the Azure Machine Learning workspace that you want to enable managed virtual network isolation for.
534
+
1. Select __Networking__, then select __Private with Approved Outbound__. Select __Save__ to save the changes.
535
+
536
+
:::image type="content" source="./media/how-to-managed-network/update-managed-network-approved-outbound.png" alt-text="Screenshot of updating a workspace to managed network with approved outbound." lightbox="./media/how-to-managed-network/update-managed-network-approved-outbound.png":::
537
+
483
538
---
484
539
485
540
@@ -554,6 +609,16 @@ To enable the [serverless spark jobs](how-to-submit-spark-jobs.md) for the manag
554
609
ml_client.workspaces.begin_update(ws)
555
610
```
556
611
612
+
613
+
# [Azure portal](#tab/portal)
614
+
615
+
1. Sign in to the [Azure portal](https://ms.azure.com), and select the Azure Machine Learning workspace.
616
+
1. Select __Networking__, then select __Add user-defined outbound rules__. Add a rule for the Azure Storage Account, and make sure that __Spark enabled__ is selected.
617
+
618
+
:::image type="content" source="./media/how-to-managed-network/add-outbound-spark-enabled.png" alt-text="Screenshot of an endpoint rule with Spark enabled selected." lightbox="./media/how-to-managed-network/add-outbound-spark-enabled.png":::
619
+
620
+
1. Select __Save__ to save the rule, then select __Save__ from the top of __Networking__ to save the changes to the manged virtual network.
621
+
557
622
---
558
623
559
624
1. Provision the managed VNet.
@@ -583,6 +648,10 @@ To enable the [serverless spark jobs](how-to-submit-spark-jobs.md) for the manag
1. Sign in to the [Azure portal](https://ms.azure.com), and select the Azure Machine Learning workspace that you want to enable managed virtual network isolation for.
705
+
1. Select __Networking__. The __Workspace Outbound access__ section allows you to manage outbound rules.
706
+
707
+
:::image type="content" source="./media/how-to-managed-network/manage-outbound-rules.png" alt-text="Screenshot of the outbound rules section." lightbox="./media/how-to-managed-network/manage-outbound-rules.png":::
0 commit comments