Skip to content

Commit 11523af

Browse files
authored
Merge pull request #51065 from Orin-Thomas/orthomas-20Jun25-A
First draft of restrict azure ML workspace module
2 parents 504da94 + 88cc367 commit 11523af

17 files changed

+304
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.azure-machine-learning-managed-virtual-networks
3+
title: Azure Machine Learning managed virtual networks
4+
metadata:
5+
title: Azure Machine Learning managed virtual networks
6+
description: Understand Azure Machine Learning managed virtual networks.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: |
13+
[!include[](includes/1-azure-machine-learning-managed-virtual-networks.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.managed-network-isolation
3+
title: Managed Network isolation
4+
metadata:
5+
title: Managed Network isolation
6+
description: Understand how to use managed virtual networks in Azure Machine Learning.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/2-managed-network-isolation.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.custom-network-isolation
3+
title: Custom network isolation
4+
metadata:
5+
title: Custom network isolation
6+
description: Learn how to isolate Azure Machine Learning workspaces in custom virtual networks.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/3-custom-network-isolation.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.comparing-network-configurations
3+
title: Comparing network configurations
4+
metadata:
5+
title: Comparing network configurations
6+
description: Understand the differences between managed virtual networks and private endpoints in Azure Machine Learning.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 2
12+
content: |
13+
[!include[](includes/4-comparing-network-configurations.md)]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.configure-managed-virtual-network-approved-outbound
3+
title: Configure managed virtual network approved outbound
4+
metadata:
5+
title: Configure managed virtual network approved outbound
6+
description: Learn how to configure approved outbound traffic for managed virtual networks in Azure Machine Learning.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 6
12+
content: |
13+
[!include[](includes/5-configure-managed-virtual-network-approved-outbound.md)]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.knowledge-check
3+
title: Knowledge Check
4+
metadata:
5+
title: Knowledge Check
6+
description: Test your knowledge of Azure Machine Learning managed virtual networks.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 4
12+
content: Choose the best response for each question.
13+
quiz:
14+
questions:
15+
- content: "You need to restrict the internet access of an Azure Machine Learning workspace. Which of the below will accomplish that?"
16+
choices:
17+
- content: "Configure the Azure virtual network for the Azure Machine Learning workspace to route all traffic to the on-premises network."
18+
isCorrect: false
19+
explanation: "Routing traffic to the on-premises network can be used to access on-premises resources but won't restrict internet access to the compute resources on an Azure Machine Learning workspace."
20+
- content: "Set the isolation mode of the Azure Machine Learning workspace to allow_internet_outbound."
21+
isCorrect: false
22+
explanation: "The allow_internet_outbound setting enables compute resources on the Azure Machine Learning workspace to access the internet freely."
23+
- content: "Set the isolation mode of the Azure Machine Learning workspace to allow_only_approved_outbound."
24+
isCorrect: true
25+
explanation: "The allow_only_approved_outbound setting restricts internet access from the compute resources in the Azure Machine Learning workspace to destinations allowed in the outbound rule."
26+
- content: "Which statement from the below is a benefit of using Managed networks for isolation?"
27+
choices:
28+
- content: "Supports managed online endpoints."
29+
isCorrect: true
30+
explanation: "Managed networks support the utilization of managed online endpoints for real-time inferencing. Managed online endpoints are platform managed and require less administrative overhead."
31+
- content: "Connect to on-premises resources."
32+
isCorrect: false
33+
explanation: "To connect to on-premises resources, you need to configure a custom virtual network or use a virtual network in between the managed network and the on-premises gateway."
34+
- content: "Support for non-HTTP/S endpoint resources."
35+
isCorrect: false
36+
explanation: "Managed networks can only access HTTP/S endpoint resources."
37+
- content: "As the cloud administrator of the Azure Machine Learning workspace, you receive a request from a data scientist to access the Python Package Index (PyPI) so the Azure Machine Learning workspace can access Python packages. As your workspace is configured to restrict access to the internet, how can you allow your data scientists to download these packages while staying compliant with your company's policies?"
38+
choices:
39+
- content: "Change the isolation mode of the Azure Machine Learning workspace to allow_internet_outbound."
40+
isCorrect: false
41+
explanation: "Changing the isolation mode to allow_internet_outbound allows for unrestricted internet access from the compute nodes."
42+
- content: "Add a new entry to the outbound rule for a private endpoint."
43+
isCorrect: false
44+
explanation: "Service endpoints can be used for Azure resources."
45+
- content: "Add a new entry to the outbound rule for an FQDN."
46+
isCorrect: true
47+
explanation: "You can add the domain of the website your compute nodes download packages from to the outbound rule."
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.restrict-azure-machine-learning-network-traffic.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: Review the key concepts of restricting network traffic in Azure Machine Learning workspaces.
7+
ms.date: 06/20/2025
8+
author: Orin-Thomas
9+
ms.author: viniap
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/7-summary.md)]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Network isolation is a security strategy that involves dividing a network into separate segments or subnets, each functioning as its own small network. This approach helps to improve security and performance within a larger network structure. Major enterprises require network isolation to secure their resources from unauthorized access, tampering, or leakage of data and models. They also need to adhere to the regulations and standards that apply to their industry and domain. Managed virtual network isolation streamlines allows you to automate network isolation for Azure Machine Learning workspaces.
2+
3+
Azure Machine Learning managed virtual networks secure your managed Azure Machine Learning resources, such as compute instances, compute clusters, serverless compute, and managed online endpoints.
4+
5+
Network isolation must be considered in three areas within Azure Machine Learning:
6+
7+
- Inbound access to the Azure Machine Learning workspace. For example, for your Data Scientists to securely access the workspace.
8+
- Outbound access from the Azure Machine Learning workspace. For example, to access other Azure services.
9+
- Outbound access from the Azure Machine Learning compute resources. For example, to access data sources, Python package repositories, or other resources.
10+
11+
![Diagram showing inbound and outbound communication for Azure Machine Learning.](../media/inbound-outbound-communication.png)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Using a managed virtual network provides an easier configuration for network isolation. It automatically secures your workspace and managed compute resources in a managed virtual network. You can add private endpoint connections for other Azure services that the workspace relies on, such as Azure Storage Accounts. Depending on your needs, you can allow all outbound traffic to the public network or allow only the outbound traffic you approve. Outbound traffic required by the Azure Machine Learning service is automatically enabled for the managed virtual network. For outbound traffic, using a managed network provides two options:
2+
3+
- **Allow internet outbound mode**: Use this option if you want to allow your machine learning engineers access the internet freely. You can create other private endpoint outbound rules to let them access your private resources on Azure.
4+
- **Allow only approved outbound mode**: Use this option if you want to minimize data exfiltration risk and control what your machine learning engineers can access. You can control outbound rules using private endpoint, service tag, and FQDN.
5+
6+
![Diagram showing the contents of a managed virtual network.](../media/managed-virtual-network.svg)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
If a managed virtual network doesn't suit your needs, you can configure and manage an Azure virtual network to implement network isolation.
2+
3+
![Diagram of a custom network isolation configuration.](../media/custom-network-isolation.png)
4+
5+
For scenarios using custom network isolation, Microsoft recommends the following best practices:
6+
7+
- Put all resources in the same region.
8+
- A hub virtual network, which contains your firewall and custom DNS set-up.
9+
- A spoke virtual network, which contains the following resources:
10+
- A training subnet contains compute instances and clusters used for training ML models. These resources are configured for no public IP.
11+
- A scoring subnet contains an AKS cluster.
12+
- A 'PE' subnet contains private endpoints that connect to the workspace and private resources used by the workspace (storage, key vault, container registry, etc.)
13+
14+
Custom virtual networks aren't recommended as misconfigurations are more likely to occur compared to managed virtual networks.

0 commit comments

Comments
 (0)