Skip to content

Commit 7143331

Browse files
Merge pull request #233842 from moarychan/moary/doc/tutorial-mi-kv
Fix bug - spring-apps/tutorial-managed-identities-key-vault.md
2 parents 8a6f3fa + 495e1d8 commit 7143331

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/spring-apps/tutorial-managed-identities-key-vault.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ az spring app create \
8787
--service <your-Azure-Spring-Apps-instance-name> \
8888
--name "springapp" \
8989
--assign-endpoint true \
90+
--runtime-version Java_17 \
9091
--system-assigned
9192
export SERVICE_IDENTITY=$(az spring app show \
9293
--resource-group "<your-resource-group-name>" \
@@ -114,6 +115,7 @@ az spring app create \
114115
--service <your-Azure-Spring-Apps-instance-name> \
115116
--name "springapp" \
116117
--user-assigned $USER_IDENTITY_RESOURCE_ID \
118+
--runtime-version Java_17 \
117119
--assign-endpoint true
118120
az spring app show \
119121
--resource-group <your-resource-group-name> \
@@ -146,7 +148,7 @@ This app has access to get secrets from Azure Key Vault. Use the Azure Key Vault
146148
1. Use the following command to generate a sample project from `start.spring.io` with Azure Key Vault Spring Starter.
147149

148150
```bash
149-
curl https://start.spring.io/starter.tgz -d dependencies=web,azure-keyvault -d baseDir=springapp -d bootVersion=2.7.2 -d javaVersion=1.8 | tar -xzvf -
151+
curl https://start.spring.io/starter.tgz -d dependencies=web,azure-keyvault -d baseDir=springapp -d bootVersion=2.7.9 -d javaVersion=17 -d type=maven-project | tar -xzvf -
150152
```
151153

152154
1. Specify your Key Vault in your app.
@@ -206,7 +208,7 @@ spring.cloud.azure.keyvault.secret.property-sources[0].credential.client-id={Cli
206208
return connectionString;
207209
}
208210

209-
public void run(String... varl) throws Exception {
211+
public void run(String... args) throws Exception {
210212
System.out.println(String.format("\nConnection String stored in Azure Key Vault:\n%s\n",connectionString));
211213
}
212214
}

0 commit comments

Comments
 (0)