@@ -87,6 +87,7 @@ az spring app create \
87
87
--service <your-Azure-Spring-Apps-instance-name> \
88
88
--name "springapp" \
89
89
--assign-endpoint true \
90
+ --runtime-version Java_17 \
90
91
--system-assigned
91
92
export SERVICE_IDENTITY=$(az spring app show \
92
93
--resource-group "<your-resource-group-name>" \
@@ -114,6 +115,7 @@ az spring app create \
114
115
--service <your-Azure-Spring-Apps-instance-name> \
115
116
--name "springapp" \
116
117
--user-assigned $USER_IDENTITY_RESOURCE_ID \
118
+ --runtime-version Java_17 \
117
119
--assign-endpoint true
118
120
az spring app show \
119
121
--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
146
148
1 . Use the following command to generate a sample project from ` start.spring.io ` with Azure Key Vault Spring Starter.
147
149
148
150
``` 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 -
150
152
```
151
153
152
154
1 . Specify your Key Vault in your app.
@@ -206,7 +208,7 @@ spring.cloud.azure.keyvault.secret.property-sources[0].credential.client-id={Cli
206
208
return connectionString;
207
209
}
208
210
209
- public void run (String ... varl ) throws Exception {
211
+ public void run (String ... args ) throws Exception {
210
212
System . out. println(String . format(" \n Connection String stored in Azure Key Vault:\n %s\n " ,connectionString));
211
213
}
212
214
}
0 commit comments