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
@@ -202,20 +202,13 @@ This authentication mode allows you to:
202
202
203
203
> [!IMPORTANT]
204
204
> This functionality has the following limitations
205
-
> * Feature is only supported for experiments submitted via the [Azure Machine Learning CLI](how-to-configure-cli.md)
206
-
> * Only CommandJobs, and PipelineJobs with CommandSteps and AutoMLSteps are supported
205
+
> * Feature is supported for experiments submitted via the [Azure Machine Learning CLI and Python SDK V2](concept-v2.md), but not via ML Studio.
207
206
> * User identity and compute managed identity cannot be used for authentication within same job.
207
+
> * For pipeline jobs, the user identity must be configured at job top level, not for individual pipeline steps.
208
208
209
-
> [!WARNING]
210
-
> This feature is __public preview__ and is __not secure for production workloads__. Ensure that only trusted users have permissions to access your workspace and storage accounts.
211
-
>
212
-
> Preview features are provided without a service-level agreement, and are not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
213
-
>
214
-
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
215
-
216
-
The following steps outline how to set up identity-based data access for training jobs on compute clusters.
209
+
The following steps outline how to set up data access with user identity for training jobs on compute clusters from CLI.
217
210
218
-
1. Grant the user identity access to storage resources. For example, grant StorageBlobReader access to the specific storage account you want to use or grant ACL-based permission to specific folders or files in Azure Data Lake Gen 2 storage.
211
+
1. Grant the user identity access to storage resources. For example, grant StorageBlobReader access to the specific storage account you want to use or grant ACL-based permission to specific folders or files in Azure Data Lake Gen 2 storage.
219
212
220
213
1. Create an Azure Machine Learning datastore without cached credentials for the storage account. If a datastore has cached credentials, such as storage account key, those credentials are used instead of user identity.
221
214
@@ -239,6 +232,40 @@ The following steps outline how to set up identity-based data access for trainin
239
232
type: user_identity
240
233
```
241
234
235
+
The following steps outline how to set up data access with user identity for training jobs on compute clusters from Python SDK.
236
+
237
+
1. Grant data access and create data store as described above for CLI.
238
+
239
+
1. Submit a training job with identity parameter set to [azure.ai.ml.UserIdentity](https://learn.microsoft.com/python/api/azure-ai-ml/azure.ai.ml.useridentity). This parameter setting enables the job to access data on behalf of user submitting the job.
240
+
241
+
```python
242
+
from azure.ai.ml import command
243
+
from azure.ai.ml.entities import Data, UriReference
> During job submission with authentication with user identity enabled, the code snapshots are protected against tampering by checksum validation. If you have existing pipeline components and intend to use them with authentication with user identity enabled, you may need to re-upload them. Otherwise the job may fail during checksum validation.
268
+
242
269
### Work with virtual networks
243
270
244
271
By default, Azure Machine Learning can't communicate with a storage account that's behind a firewall or in a virtual network.
0 commit comments