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-administrate-data-authentication.md
+42-30Lines changed: 42 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
title: Administer data authentication
3
3
titleSuffix: Azure Machine Learning
4
-
description: Learn how to manage data access and how to authenticate in Azure Machine Learning.
4
+
description: Learn how to manage data access and how to handle authentication operations in Azure Machine Learning.
5
5
services: machine-learning
6
6
ms.service: azure-machine-learning
7
7
ms.subservice: enterprise-readiness
8
8
ms.topic: how-to
9
9
ms.author: franksolomon
10
10
author: fbsolo-ms1
11
11
ms.reviewer: xunwan
12
-
ms.date: 09/26/2023
12
+
ms.date: 09/06/2024
13
13
ms.custom: engagement-fy23
14
14
15
15
# Customer intent: As an administrator, I need to administer data access and set up authentication methods for data scientists.
@@ -26,10 +26,17 @@ Learn how to manage data access and how to authenticate in Azure Machine Learnin
26
26
## Credential-based data authentication
27
27
28
28
In general, credential-based data authentication involves these checks:
29
-
* Has the user who is accessing data from the credential-based datastore been assigned a role with role-based access control (RBAC) that contains `Microsoft.MachineLearningServices/workspaces/datastores/listsecrets/action`?
29
+
* Check that the user who accesses data from the credential-based datastore has an assigned role with role-based access control (RBAC) that contains `Microsoft.MachineLearningServices/workspaces/datastores/listsecrets/action`
30
+
30
31
- This permission is required to retrieve credentials from the datastore for the user.
31
-
- Built-in roles that contain this permission already are [Contributor](/azure/role-based-access-control/built-in-roles/general#contributor), Azure AI Developer, or [Azure Machine Learning Data Scientist](/azure/role-based-access-control/built-in-roles/ai-machine-learning#azureml-data-scientist). Alternatively, if a custom role is applied, you need to ensure that this permission is added to that custom role.
32
-
- You must know *which* specific user is trying to access the data. It can be a real user with a user identity or a computer with compute managed identity (MSI). See the section [Scenarios and authentication options](#scenarios-and-authentication-options) to identify the identity for which you need to add permission.
32
+
- Built-in roles that already contain this permission:
-[Azure Machine Learning Data Scientist](/azure/role-based-access-control/built-in-roles/ai-machine-learning#azureml-data-scientist)
37
+
- Alternatively, if a custom role is applied, this permission must be added to that custom role
38
+
39
+
- You must know *which* specific user wants to access the data. A specific user can be a real user with a user identity. It can also be a computer with compute managed identity (MSI). For more information, visit the [Scenarios and authentication options](#scenarios-and-authentication-options) section to determine the identity that needs the added permission.
33
40
34
41
* Does the stored credential (service principal, account key, or shared access signature token) have access to the data resource?
35
42
@@ -38,44 +45,49 @@ In general, credential-based data authentication involves these checks:
38
45
In general, identity-based data authentication involves these checks:
39
46
40
47
* Which user wants to access the resources?
41
-
-Depending on the context when the data is being accessed, different types of authentication are available, for example:
48
+
-Different types of authentication are available, depending on the context at the time the data is accessed. For example:
42
49
- User identity
43
50
- Compute managed identity
44
51
- Workspace managed identity
45
-
- Jobs, including the dataset `Generate Profile` option, run on a compute resource in *your subscription*, and access the data from that location. The compute managed identity needs permission to the storage resource, instead of the identity of the user who submitted the job.
46
-
- For authentication based on a user identity, you must know *which* specific user tried to access the storage resource. For more information about *user* authentication, see[Authentication for Azure Machine Learning](how-to-setup-authentication.md). For more information about service-level authentication, see[Authentication between Azure Machine Learning and other services](how-to-identity-based-service-authentication.md).
47
-
* Does this user have permission for reading?
52
+
- Jobs, including the dataset `Generate Profile` option, run on a compute resource in *your subscription*, and access the data from that location. The compute managed identity needs permission to access the storage resource, instead of the identity of the user who submitted the job.
53
+
- For authentication based on a user identity, you must know *which* specific user tried to access the storage resource. For more information about *user* authentication, visit[Authentication for Azure Machine Learning](how-to-setup-authentication.md). For more information about service-level authentication, visit[Authentication between Azure Machine Learning and other services](how-to-identity-based-service-authentication.md).
54
+
* Does this user have read permission for the resource?
48
55
- Does the user identity or the compute managed identity have the necessary permissions for that storage resource? Permissions are granted by using Azure RBAC.
49
56
- The storage account [Reader](/azure/role-based-access-control/built-in-roles#reader) reads the storage metadata.
50
57
- The [Storage Blob Data Reader](/azure/role-based-access-control/built-in-roles#storage-blob-data-reader) reads and lists storage containers and blobs.
51
-
- For more information, see[Azure built-in roles for storage](/azure/role-based-access-control/built-in-roles/storage).
52
-
* Does this user have permission for writing?
58
+
- For more information, visit[Azure built-in roles for storage](/azure/role-based-access-control/built-in-roles/storage).
59
+
* Does this user have write permission for the resource?
53
60
- Does the user identity or the compute managed identity have the necessary permissions for that storage resource? Permissions are granted by using Azure RBAC.
54
61
- The storage account [Reader](/azure/role-based-access-control/built-in-roles#reader) reads the storage metadata.
55
62
- The [Storage Blob Data Contributor](/azure/role-based-access-control/built-in-roles#storage-blob-data-contributor) reads, writes, and deletes Azure Storage containers and blobs.
56
-
- For more information, see[Azure built-in roles for storage](/azure/role-based-access-control/built-in-roles/storage).
63
+
- For more information, visit[Azure built-in roles for storage](/azure/role-based-access-control/built-in-roles/storage).
57
64
58
65
## Other general checks for authentication
59
66
60
-
*Where does the access come from?
67
+
*What exactly will access the resource?
61
68
-**User**: Is the client IP address in the virtual network/subnet range?
62
69
-**Workspace**: Is the workspace public, or does it have a private endpoint in a virtual network/subnet?
63
70
-**Storage**: Does the storage allow public access, or does it restrict access through a service endpoint or a private endpoint?
64
-
* What operation will be performed?
65
-
- Azure Machine Learning handles create, read, update, and delete (CRUD) operations on a data store/dataset.
71
+
* What is the planned operation?
72
+
- Azure Machine Learning handles
73
+
-**C**reate
74
+
-**R**ead
75
+
-**U**pdate
76
+
-**D**elete
77
+
(CRUD) operations on a data store/dataset.
66
78
- Archive operations on data assets in Azure Machine Learning studio require this RBAC operation: `Microsoft.MachineLearningServices/workspaces/datasets/registered/delete`
67
-
- Data access calls (for example, preview or schema) go to the underlying storage and need extra permissions.
68
-
* Will this operation run in your Azure subscription compute resources or resources hosted in a Microsoft subscription?
79
+
- Data access calls (for example, preview or schema) go to the underlying storage and require extra permissions.
80
+
* Will this operation run in an Azure subscription compute resources, or resources hosted in a Microsoft subscription?
69
81
- All calls to dataset and datastore services (except the `Generate Profile` option) use resources hosted in a *Microsoft subscription* to run the operations.
70
82
- Jobs, including the dataset `Generate Profile` option, run on a compute resource in *your subscription* and access the data from that location. The compute identity needs permission to the storage resource, instead of the identity of the user who submitted the job.
71
83
72
-
This diagram shows the general flow of a data access call. Here, a user tries to make a data access call through a Machine Learning workspace, without using a compute resource.
84
+
This diagram shows the general flow of a data access call. Here, a user tries to make a data access call through a Machine Learning workspace, without use of a compute resource.
73
85
74
-
:::image type="content" source="./media/concept-network-data-access/data-access-flow.svg" alt-text="Diagram that shows the logic flow when accessing data.":::
86
+
:::image type="content" source="./media/how-to-administrate-data-authentication/data-access-flow.svg" alt-text="Diagram that shows the logic flow when accessing data.":::
75
87
76
88
## Scenarios and authentication options
77
89
78
-
This table lists the identities to use for specific scenarios.
90
+
This table lists the identities to use for specific scenarios:
@@ -84,51 +96,51 @@ This table lists the identities to use for specific scenarios.
84
96
| Credential + No Workspace MSI | Credential | Credential | Credential (not supported for Dataset Preview under private network) | Credential (only account key and shared access signature token) |
85
97
| No Credential + No Workspace MSI | Compute MSI/User identity | Compute MSI/User identity | User identity | User identity |
86
98
87
-
For SDK V1, data authentication in a job always uses compute MSI. For SDK V2, data authentication in a job depends on the job setting. It can be user identity or compute MSI based on your setting.
99
+
For SDK V1, data authentication in a job always uses compute MSI. For SDK V2, data authentication in a job depends on your job setting. It can be user identity or compute MSI, based on that job setting.
88
100
89
101
> [!TIP]
90
-
> To access data from outside Machine Learning, for example, with Azure Storage Explorer, that access probably relies on the *user* identity. For specific information, review the documentation for the tool or service you're using. For more information about how Machine Learning works with data, see[Set up authentication between Azure Machine Learning and other services](how-to-identity-based-service-authentication.md).
102
+
> To access data from outside Machine Learning - for example, with Azure Storage Explorer - that access probably relies on the *user* identity. For specific information, review the documentation for the tool or service you plan to use. For more information about how Machine Learning works with data, visit[Set up authentication between Azure Machine Learning and other services](how-to-identity-based-service-authentication.md).
91
103
92
104
## Virtual network specific requirements
93
105
94
-
The following information helps you set up data authentication to access data behind a virtual network from a Machine Learning workspace.
106
+
This information helps you set up data authentication from a Machine Learning workspace, to access data behind a virtual network.
95
107
96
108
### Add permissions of a storage account to a Machine Learning workspace managed identity
97
109
98
-
When you use a storage account from the studio, if you want to see Dataset Preview, you must enable **Use workspace managed identity for data preview and profiling in Azure Machine Learning studio** in the datastore setting. Then add the following Azure RBAC roles of the storage account to the workspace managed identity:
110
+
When you use a storage account from the studio, if you want to see Dataset Preview, you must enable **Use workspace managed identity for data preview and profiling in Azure Machine Learning studio** in the datastore setting. Then add these storage account Azure RBAC roles to the workspace managed identity:
99
111
100
112
*[Blob Data Reader](/azure/role-based-access-control/built-in-roles#storage-blob-data-reader)
101
113
* If the storage account uses a private endpoint to connect to the virtual network, you must grant the [Reader](/azure/role-based-access-control/built-in-roles#reader) role for the storage account private endpoint to the managed identity.
102
114
103
-
For more information, see[Use Azure Machine Learning studio in an Azure virtual network](how-to-enable-studio-virtual-network.md).
115
+
For more information, visit[Use Azure Machine Learning studio in an Azure virtual network](how-to-enable-studio-virtual-network.md).
104
116
105
-
The following sections explain the limitations of using a storage account, with your workspace, in a virtual network.
117
+
These sections explain the limitations of using a storage account, with your workspace, in a virtual network.
106
118
107
119
### Secure communication with a storage account
108
120
109
121
To secure communication between Machine Learning and storage accounts, configure the storage to [grant access to trusted Azure services](/azure/storage/common/storage-network-security#grant-access-to-trusted-azure-services).
110
122
111
123
### Azure Storage firewall
112
124
113
-
When a storage account is located behind a virtual network, the storage firewall can normally be used to allow your client to directly connect over the internet. However, when you use the studio, your client doesn't connect to the storage account. The Machine Learning service that makes the request connects to the storage account. The IP address of the service isn't documented, and it changes frequently. Enabling the storage firewall won't allow the studio to access the storage account in a virtual network configuration.
125
+
For a storage account located behind a virtual network, the storage firewall can normally allow your client to directly connect over the internet. However, when you use the studio, your client doesn't connect to the storage account. The Machine Learning service that makes the request connects to the storage account. The IP address of the service isn't documented, and it changes frequently. Enabling the storage firewall doesn't allow the studio to access the storage account in a virtual network configuration.
114
126
115
127
### Azure Storage endpoint type
116
128
117
-
When the workspace uses a private endpoint, and the storage account is also in the virtual network, extra validation requirements arise when you use the studio:
129
+
When the workspace uses a private endpoint, and the storage account is also in the virtual network, extra validation requirements arise when you use the studio.
118
130
119
131
* If the storage account uses a *service endpoint*, the workspace private endpoint and storage service endpoint must be located in the same subnet of the virtual network.
120
132
* If the storage account uses a *private endpoint*, the workspace private endpoint and storage private endpoint must be in located in the same virtual network. In this case, they can be in different subnets.
121
133
122
134
## Azure Data Lake Storage Gen1
123
135
124
-
When you use Azure Data Lake Storage Gen1 as a datastore, you can only use POSIX-style access control lists. You can assign the workspace's managed identity access to resources, like any other security principal. For more information, see[Access control in Azure Data Lake Storage Gen1](/azure/data-lake-store/data-lake-store-access-control).
136
+
When you use Azure Data Lake Storage Gen1 as a datastore, you can only use POSIX-style access control lists. You can assign the workspace's managed identity access to resources, like any other security principal. For more information, visit[Access control in Azure Data Lake Storage Gen1](/azure/data-lake-store/data-lake-store-access-control).
125
137
126
138
## Azure Data Lake Storage Gen2
127
139
128
140
When you use Azure Data Lake Storage Gen2 as a datastore, you can use both Azure RBAC and POSIX-style access control lists (ACLs) to control data access inside a virtual network.
129
141
130
142
-**To use Azure RBAC**: Follow the steps described in [Datastore: Azure Storage account](how-to-enable-studio-virtual-network.md#datastore-azure-storage-account). Data Lake Storage Gen2 is based on Azure Storage, so the same steps apply when you use Azure RBAC.
131
-
-**To use ACLs**: The managed identity of the workspace can be assigned access like any other security principal. For more information, see[Access control lists on files and directories](/azure/storage/blobs/data-lake-storage-access-control#access-control-lists-on-files-and-directories).
143
+
-**To use ACLs**: The managed identity of the workspace can be assigned access like any other security principal. For more information, visit[Access control lists on files and directories](/azure/storage/blobs/data-lake-storage-access-control#access-control-lists-on-files-and-directories).
0 commit comments