File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ az spring app create \
87
87
--name "springapp" \
88
88
--service <your-Azure-Spring-Apps-instance-name> \
89
89
--assign-endpoint true \
90
+ --runtime-version Java_17 \
90
91
--system-assigned
91
92
export SERVICE_IDENTITY=$(az spring app show --name "springapp" -s "myspringcloud" -g "myResourceGroup" | jq -r '.identity.principalId')
92
93
```
@@ -110,6 +111,7 @@ az spring app create \
110
111
--name "springapp" \
111
112
--service <your-Azure-Spring-Apps-instance-name> \
112
113
--assign-endpoint true \
114
+ --runtime-version Java_17 \
113
115
--user-assigned $USER_IDENTITY_RESOURCE_ID
114
116
az spring app show \
115
117
--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
142
144
1 . Use the following command to generate a sample project from ` start.spring.io ` with Azure Key Vault Spring Starter.
143
145
144
146
``` 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 -
146
148
```
147
149
148
150
1 . Specify your Key Vault in your app.
@@ -202,7 +204,7 @@ spring.cloud.azure.keyvault.secret.property-sources[0].credential.client-id={Cli
202
204
return connectionString;
203
205
}
204
206
205
- public void run (String ... varl ) throws Exception {
207
+ public void run (String ... args ) throws Exception {
206
208
System . out. println(String . format(" \n Connection String stored in Azure Key Vault:\n %s\n " ,connectionString));
207
209
}
208
210
}
You can’t perform that action at this time.
0 commit comments