Skip to content

Commit 608c711

Browse files
committed
pom update
1 parent 13ee80d commit 608c711

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

key-vault/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,23 @@ Our Spring app will be able to access these secrets when deployed on App Service
6969
1. Add the following to the Azure App Service plugin section of the `pom.xml`. Adding this configuration will create Application Settings with the given name and value. The value of each setting should be a Key Vault reference with the corresponding `id` from the previous step.
7070
7171
```xml
72-
<appSettings>
72+
<appSettings>
7373
<property>
7474
<name>SPRING_DATASOURCE_URL</name>
75-
<value>@Microsoft.KeyVault(INSERT_ID_HERE)</value>
75+
<value>@Microsoft.KeyVault(SecretUri=YOUR_SECRET_UIR)</value>
7676
</property>
7777
<property>
7878
<name>SPRING_DATASOURCE_USERNAME</name>
79-
<value>@Microsoft.KeyVault(INSERT_ID_HERE)</value>
79+
<value>@Microsoft.KeyVault(SecretUri=YOUR_SECRET_UIR)</value>
8080
</property>
8181
<property>
8282
<name>SPRING_DATASOURCE_PASSWORD</name>
83-
<value>@Microsoft.KeyVault(INSERT_ID_HERE)</value>
83+
<value>@Microsoft.KeyVault(SecretUri=YOUR_SECRET_UIR)</value>
8484
</property>
8585
</appSettings>
8686
```
8787
88-
A Key Vault reference is of the form `@Microsoft.KeyVault(SecretURI)`, where `SecretURI` is data-plane URI of a secret in Key Vault, including a version. There is an alternate syntax [documented here](https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references#reference-syntax).
88+
A Key Vault reference is of the form `@Microsoft.KeyVault(SecretUri=<SecretURI>)`, where `<SecretURI>` is data-plane URI of a secret in Key Vault, including a version. There is an alternate syntax [documented here](https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-references#reference-syntax).
8989
9090
### Environment Configuration
9191
@@ -175,17 +175,17 @@ The Key Vault references will be replaced with the actual secrets when our App S
175175
<!-- This profile will configure Spring to use an in-memory database for local development and testing. -->
176176
<id>dev</id>
177177
<activation>
178-
<activeByDefault>true</activeByDefault>
178+
<activeByDefault>true</activeByDefault>
179179
</activation>
180180
<properties>
181-
<spring.profiles.active>dev</spring.profiles.active>
181+
<spring.profiles.active>dev</spring.profiles.active>
182182
</properties>
183183
</profile>
184184
<profile>
185185
<!-- This profile will configure the application to use our Azure PostgreSQL server. -->
186186
<id>prod</id>
187187
<properties>
188-
<spring.profiles.active>prod</spring.profiles.active>
188+
<spring.profiles.active>prod</spring.profiles.active>
189189
</properties>
190190
</profile>
191191
</profiles>

0 commit comments

Comments
 (0)