Skip to content

Commit 83d7079

Browse files
committed
Upgrade to using Java 17, update the project generation link
1 parent 1de9eb6 commit 83d7079

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
--name "springapp" \
8888
--service <your-Azure-Spring-Apps-instance-name> \
8989
--assign-endpoint true \
90+
--runtime-version Java_17 \
9091
--system-assigned
9192
export SERVICE_IDENTITY=$(az spring app show --name "springapp" -s "myspringcloud" -g "myResourceGroup" | jq -r '.identity.principalId')
9293
```
@@ -110,6 +111,7 @@ az spring app create \
110111
--name "springapp" \
111112
--service <your-Azure-Spring-Apps-instance-name> \
112113
--assign-endpoint true \
114+
--runtime-version Java_17 \
113115
--user-assigned $USER_IDENTITY_RESOURCE_ID
114116
az spring app show \
115117
--resource-group <your-resource-group-name> \
@@ -142,7 +144,7 @@ This app will have access to get secrets from Azure Key Vault. Use the Azure Key
142144
1. Use the following command to generate a sample project from `start.spring.io` with Azure Key Vault Spring Starter.
143145

144146
```azurecli
145-
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 -
147+
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 -
146148
```
147149

148150
1. Specify your Key Vault in your app.
@@ -202,7 +204,7 @@ spring.cloud.azure.keyvault.secret.property-sources[0].credential.client-id={Cli
202204
return connectionString;
203205
}
204206

205-
public void run(String... varl) throws Exception {
207+
public void run(String... args) throws Exception {
206208
System.out.println(String.format("\nConnection String stored in Azure Key Vault:\n%s\n",connectionString));
207209
}
208210
}

0 commit comments

Comments
 (0)