Skip to content

Commit 1ca29d1

Browse files
authored
Merge pull request #238837 from Blackmist/managed-network-ui
Managed network UI
2 parents 24430f6 + 912a117 commit 1ca29d1

7 files changed

+78
-2
lines changed

articles/machine-learning/how-to-managed-network.md

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ The managed virtual network is preconfigured with [required default rules](#list
5454

5555
Before following the steps in this article, make sure you have the following prerequisites:
5656

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:
59+
>
60+
> | Registration method | Feature name |
61+
> | ----- | ----- |
62+
> | Azure portal | `Azure Machine Learning Managed Network` |
63+
> | Azure CLI | `AMLManagedNetworkEnabled` |
64+
> | Azure PowerShell | `AMLManagedNetworkEnabled` |
65+
5766
# [Azure CLI](#tab/azure-cli)
5867

5968
* 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
7180
7281
* 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.
7382
74-
75-
7683
# [Python](#tab/python)
7784
7885
* 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
100107
resource_group = "<RESOURCE_GROUP>"
101108
```
102109
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+
103114
---
104115
105116
## 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
264275
ml_client.workspaces.begin_update(ws)
265276
```
266277

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+
267300
---
268301

269302
## 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
480513
ml_client.workspaces.begin_update(ws)
481514
```
482515

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+
483538
---
484539

485540

@@ -554,6 +609,16 @@ To enable the [serverless spark jobs](how-to-submit-spark-jobs.md) for the manag
554609
ml_client.workspaces.begin_update(ws)
555610
```
556611

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+
557622
---
558623

559624
1. Provision the managed VNet.
@@ -583,6 +648,10 @@ To enable the [serverless spark jobs](how-to-submit-spark-jobs.md) for the manag
583648
provision_network_result = ml_client.workspaces.begin_provision_network(ws_name, include_spark).result()
584649
```
585650

651+
# [Azure portal](#tab/portal)
652+
653+
Create a new compute instance or compute cluster, which also creates the managed virtual network.
654+
586655
---
587656

588657
## Manage outbound rules
@@ -630,6 +699,13 @@ print([r._to_dict() for r in rule_list])
630699
ml_client._workspace_outbound_rules.begin_remove(resource_group, ws_name, rule_name).result()
631700
```
632701

702+
# [Azure portal](#tab/portal)
703+
704+
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":::
708+
633709
---
634710

635711
## List of required rules
33.8 KB
Loading
140 KB
Loading
140 KB
Loading
130 KB
Loading
118 KB
Loading
104 KB
Loading

0 commit comments

Comments
 (0)