Skip to content

Commit 65938ff

Browse files
committed
noticed an omission
1 parent b30e9fe commit 65938ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/machine-learning/how-to-use-secrets-in-runs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ Before following the steps in this article, make sure you have the following pre
5858

5959
The environment is used to build the Docker image that the training job runs in on the compute cluster.
6060

61-
1. From your training code, use the [Azure Identity SDK](/python/api/overview/azure/identity-readme) and [Key Vault client library](/python/api/overview/azure/keyvault-secrets-readme) to get the managed identity credentials and authenticate to key vault:
61+
1. From your training code, use the [Azure Identity SDK](/python/api/overview/azure/identity-readme) and [Key Vault client library](/python/api/overview/azure/keyvault-secrets-readme) to get the managed identity credentials and authenticate to key vault.
62+
63+
If you want to use your credentials instead of a managed identity to get the secrets, add the [Azure Machine Learning SDK](/python/api/overview/azure/ai-ml-readme) to your training code:
6264

6365
# [Managed identity](#tab/managed)
6466

@@ -85,7 +87,7 @@ Before following the steps in this article, make sure you have the following pre
8587
secret_client = SecretClient(vault_url="https://my-key-vault.vault.azure.net/", credential=credential)
8688
```
8789

88-
When you submit the training job, you must specify that it runs in the context of your identity by using `identity=UserIdentityConfiguration()`. The following example submits a job using this parameter:
90+
When you submit the training job, you must specify that it runs on behalf of your identity by using `identity=UserIdentityConfiguration()`. The following example submits a job using this parameter:
8991

9092
```python
9193
from azure.ai.ml import Input, command

0 commit comments

Comments
 (0)