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
First, create a user-assigned managed identity in advance with its resource ID set to `$USER_IDENTITY_RESOURCE_ID`.
96
+
First, create a user-assigned managed identity in advance with its resource ID set to `$USER_IDENTITY_RESOURCE_ID`. Save the client ID for the property configuration below.
97
97
98
-
:::image type="content" source="media/tutorial-managed-identities-key-vault/app-user-managed-identity-key-vault.png" alt-text="Screenshot of Azure portal showing the Managed Identity Properties screen with 'Principle I D' and 'Client I D' highlighted." lightbox="media/tutorial-managed-identities-key-vault/app-user-managed-identity-key-vault.png":::
98
+
:::image type="content" source="media/tutorial-managed-identities-key-vault/app-user-managed-identity-key-vault.png" alt-text="Screenshot of Azure portal showing the Managed Identity Properties screen with 'Resource ID', 'Principle ID' and 'Client ID' highlighted." lightbox="media/tutorial-managed-identities-key-vault/app-user-managed-identity-key-vault.png":::
99
99
100
100
```azurecli
101
101
export SERVICE_IDENTITY={principal ID of user-assigned managed identity}
102
102
export USER_IDENTITY_RESOURCE_ID={resource ID of user-assigned managed identity}
103
-
export USER_IDENTITY_CLIENT_ID={client ID of user-assigned managed identity}
104
103
```
105
104
106
105
The following example creates an app named `springapp` with a user-assigned managed identity, as requested by the `--user-assigned` parameter.
@@ -143,7 +142,7 @@ This app will have access to get secrets from Azure Key Vault. Use the Azure Key
143
142
1. Use the following command to generate a sample project from `start.spring.io` with Azure Key Vault Spring Starter.
spring.cloud.azure.keyvault.secret.property-sources[0].credential.client-id={Client ID of user-assigned managed identity}
171
170
```
172
171
173
172
---
@@ -209,19 +208,19 @@ azure.keyvault.client-id={Client ID of user-assigned managed identity}
209
208
}
210
209
```
211
210
212
-
If you open the *pom.xml* file, you'll see the dependency of `azure-keyvault-secrets-spring-boot-starter`. Add this dependency to your project in your *pom.xml* file.
211
+
If you open the *pom.xml* file, you'll see the dependency of `spring-cloud-azure-starter-keyvault`.
0 commit comments