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
## Grant your VM access to a Secret stored in a Key Vault
38
+
## Grant access
39
39
40
-
Using managed identities for Azure resources, your code can get access tokens to authenticate to resources that support Azure AD authentication. However, not all Azure services support Azure AD authentication. To use managed identities for Azure resources with those services, store the service credentials in Azure Key Vault, and use the VM's managed identity to access Key Vault to retrieve the credentials.
40
+
This section shows how to grant your VM access to a Secret stored in a Key Vault. Using managed identities for Azure resources, your code can get access tokens to authenticate to resources that support Azure AD authentication. However, not all Azure services support Azure AD authentication. To use managed identities for Azure resources with those services, store the service credentials in Azure Key Vault, and use the VM's managed identity to access Key Vault to retrieve the credentials.
41
41
42
42
First, we need to create a Key Vault and grant our VM’s system-assigned managed identity access to the Key Vault.
43
43
@@ -62,9 +62,9 @@ Next, add a secret to the Key Vault, so that later you can retrieve the secret u
62
62
5. Leave the activation date and expiration date clear, and leave **Enabled** as **Yes**.
63
63
6. Click **Create** to create the secret.
64
64
65
-
## Get an access token using the VM identity and use it to retrieve the secret from the Key Vault
65
+
## Get an access token
66
66
67
-
If you don’t have PowerShell 4.3.1 or greater installed, you'll need to [download and install the latest version](https://docs.microsoft.com/powershell/azure/overview).
67
+
This section shows how to get an access token using the VM identity and use it to retrieve the secret from the Key Vault. If you don’t have PowerShell 4.3.1 or greater installed, you'll need to [download and install the latest version](https://docs.microsoft.com/powershell/azure/overview).
68
68
69
69
First, we use the VM’s system-assigned managed identity to get an access token to authenticate to Key Vault:
0 commit comments