Skip to content

Commit 9767051

Browse files
authored
Merge pull request #253040 from mrm9084/SpringVersionUpdates
Version Update and Managed Identity Usage
2 parents 55a3eba + e0cbd86 commit 9767051

6 files changed

+136
-51
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-java-spring-push-refresh.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.workload: tbd
1414
ms.devlang: java
1515
ms.custom: devx-track-extended-java
1616
ms.topic: tutorial
17-
ms.date: 04/11/2023
17+
ms.date: 09/27/2023
1818
ms.author: mametcal
1919
#Customer intent: I want to use push refresh to dynamically update my app to use the latest configuration data in App Configuration.
2020
---
@@ -57,14 +57,25 @@ In this tutorial, you learn how to:
5757
<dependency>
5858
<groupId>com.azure.spring</groupId>
5959
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
60-
<version>5.4.0</version>
6160
</dependency>
6261

6362
<!-- Adds the Ability to Push Refresh -->
6463
<dependency>
6564
<groupId>org.springframework.boot</groupId>
6665
<artifactId>spring-boot-starter-actuator</artifactId>
6766
</dependency>
67+
68+
<dependencyManagement>
69+
<dependencies>
70+
<dependency>
71+
<groupId>com.azure.spring</groupId>
72+
<artifactId>spring-cloud-azure-dependencies</artifactId>
73+
<version>5.5.0</version>
74+
<type>pom</type>
75+
<scope>import</scope>
76+
</dependency>
77+
</dependencies>
78+
</dependencyManagement>
6879
```
6980

7081
### [Spring Boot 2](#tab/spring-boot-2)
@@ -81,6 +92,18 @@ In this tutorial, you learn how to:
8192
<groupId>org.springframework.boot</groupId>
8293
<artifactId>spring-boot-starter-actuator</artifactId>
8394
</dependency>
95+
96+
<dependencyManagement>
97+
<dependencies>
98+
<dependency>
99+
<groupId>com.azure.spring</groupId>
100+
<artifactId>spring-cloud-azure-dependencies</artifactId>
101+
<version>4.11.0</version>
102+
<type>pom</type>
103+
<scope>import</scope>
104+
</dependency>
105+
</dependencies>
106+
</dependencyManagement>
84107
```
85108

86109
---

articles/azure-app-configuration/howto-convert-to-the-new-spring-boot.md

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.devlang: java
77
author: mrm9084
88
ms.author: mametcal
99
ms.topic: how-to
10-
ms.date: 04/11/2023
10+
ms.date: 09/27/2023
1111
---
1212

1313
# Convert to the new App Configuration library for Spring Boot
@@ -26,23 +26,31 @@ All of the group and artifact IDs in the Azure libraries for Spring Boot have be
2626
<dependency>
2727
<groupId>com.azure.spring</groupId>
2828
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
29-
<version>5.4.0</version>
3029
</dependency>
3130
<dependency>
3231
<groupId>com.azure.spring</groupId>
3332
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
34-
<version>5.4.0</version>
3533
</dependency>
3634
<dependency>
3735
<groupId>com.azure.spring</groupId>
3836
<artifactId>spring-cloud-azure-feature-management</artifactId>
39-
<version>5.4.0</version>
4037
</dependency>
4138
<dependency>
4239
<groupId>com.azure.spring</groupId>
4340
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
44-
<version>5.4.0</version>
4541
</dependency>
42+
43+
<dependencyManagement>
44+
<dependencies>
45+
<dependency>
46+
<groupId>com.azure.spring</groupId>
47+
<artifactId>spring-cloud-azure-dependencies</artifactId>
48+
<version>5.5.0</version>
49+
<type>pom</type>
50+
<scope>import</scope>
51+
</dependency>
52+
</dependencies>
53+
</dependencyManagement>
4654
```
4755

4856
### [Spring Boot 2](#tab/spring-boot-2)
@@ -51,23 +59,31 @@ All of the group and artifact IDs in the Azure libraries for Spring Boot have be
5159
<dependency>
5260
<groupId>com.azure.spring</groupId>
5361
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
54-
<version>4.10.0</version>
5562
</dependency>
5663
<dependency>
5764
<groupId>com.azure.spring</groupId>
5865
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
59-
<version>4.10.0</version>
6066
</dependency>
6167
<dependency>
6268
<groupId>com.azure.spring</groupId>
6369
<artifactId>spring-cloud-azure-feature-management</artifactId>
64-
<version>4.10.0</version>
6570
</dependency>
6671
<dependency>
6772
<groupId>com.azure.spring</groupId>
6873
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
69-
<version>4.10.0</version>
7074
</dependency>
75+
76+
<dependencyManagement>
77+
<dependencies>
78+
<dependency>
79+
<groupId>com.azure.spring</groupId>
80+
<artifactId>spring-cloud-azure-dependencies</artifactId>
81+
<version>4.11.0</version>
82+
<type>pom</type>
83+
<scope>import</scope>
84+
</dependency>
85+
</dependencies>
86+
</dependencyManagement>
7187
```
7288

7389
---
@@ -77,32 +93,6 @@ The 4.7.0 version is the first 4.x version of the library. It matches the versio
7793

7894
As of the 4.7.0 version, the App Configuration and feature management libraries are part of the `spring-cloud-azure-dependencies` bill of materials (BOM). The BOM file ensures that you no longer need to specify the version of the libraries in your project. The BOM automatically manages the version of the libraries.
7995

80-
```xml
81-
82-
```
83-
84-
### [Spring Boot 3](#tab/spring-boot-3)
85-
86-
```xml
87-
<dependency>
88-
<groupId>com.azure.spring</groupId>
89-
<artifactId>spring-cloud-azure-dependencies</artifactId>
90-
<version>5.4.0</version>
91-
<type>pom</type>
92-
</dependency>
93-
```
94-
95-
### [Spring Boot 2](#tab/spring-boot-2)
96-
97-
```xml
98-
<dependency>
99-
<groupId>com.azure.spring</groupId>
100-
<artifactId>spring-cloud-azure-dependencies</artifactId>
101-
<version>4.10.0</version>
102-
<type>pom</type>
103-
</dependency>
104-
```
105-
10696
---
10797

10898
## Package paths renamed

articles/azure-app-configuration/howto-integrate-azure-managed-service-identity.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The following steps describe how to assign the App Configuration Data Reader rol
128128
using Azure.Identity;
129129
```
130130

131-
1. To access values stored in App Configuration, update the `Builder` configuration to use the the `AddAzureAppConfiguration()` method.
131+
1. To access values stored in App Configuration, update the `Builder` configuration to use the `AddAzureAppConfiguration()` method.
132132
133133
### [.NET 6.0+](#tab/core6x)
134134
@@ -171,14 +171,22 @@ The following steps describe how to assign the App Configuration Data Reader rol
171171
172172
1. Find the endpoint to your App Configuration store. This URL is listed on the **Overview** tab for the store in the Azure portal.
173173
174-
1. Open `bootstrap.properties`, remove the connection-string property and replace it with endpoint:
174+
1. Open `bootstrap.properties`, remove the connection-string property and replace it with endpoint for System Assigned Identity:
175175
176176
```properties
177177
spring.cloud.azure.appconfiguration.stores[0].endpoint=<service_endpoint>
178178
```
179179
180+
for User Assigned Identity:
181+
182+
```properties
183+
spring.cloud.azure.appconfiguration.stores[0].endpoint=<service_endpoint>
184+
spring.cloud.azure.credential.managed-identity-enabled= true
185+
spring.cloud.azure.credential.client-id= <client_id>
186+
```
187+
180188
> [!NOTE]
181-
> If you want to use **user-assigned managed identity** the property `spring.cloud.azure.appconfiguration.stores[0].managed-identity.client-id`, ensure that you specify the `clientId` when creating the [ManagedIdentityCredential](/java/api/com.azure.identity.managedidentitycredential).
189+
> For more information see [Spring Cloud Azure authentication](/azure/developer/java/spring-framework/authentication).
182190
183191
:::zone-end
184192

articles/azure-app-configuration/quickstart-feature-flag-spring-boot.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: mrm9084
55
ms.service: azure-app-configuration
66
ms.devlang: java
77
ms.topic: quickstart
8-
ms.date: 04/11/2023
8+
ms.date: 09/27/2023
99
ms.author: mametcal
1010
ms.custom: devx-track-java, mode-other
1111
#Customer intent: As an Spring Boot developer, I want to use feature flags to control feature availability quickly and confidently.
@@ -58,17 +58,27 @@ To create a new Spring Boot project:
5858
<dependency>
5959
<groupId>com.azure.spring</groupId>
6060
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
61-
<version>5.4.0</version>
6261
</dependency>
6362
<dependency>
6463
<groupId>com.azure.spring</groupId>
6564
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
66-
<version>5.4.0</version>
6765
</dependency>
6866
<dependency>
6967
<groupId>org.springframework.boot</groupId>
7068
<artifactId>spring-boot-starter-thymeleaf</artifactId>
7169
</dependency>
70+
71+
<dependencyManagement>
72+
<dependencies>
73+
<dependency>
74+
<groupId>com.azure.spring</groupId>
75+
<artifactId>spring-cloud-azure-dependencies</artifactId>
76+
<version>5.5.0</version>
77+
<type>pom</type>
78+
<scope>import</scope>
79+
</dependency>
80+
</dependencies>
81+
</dependencyManagement>
7282
```
7383

7484
### [Spring Boot 2](#tab/spring-boot-2)
@@ -77,17 +87,27 @@ To create a new Spring Boot project:
7787
<dependency>
7888
<groupId>com.azure.spring</groupId>
7989
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
80-
<version>4.10.0</version>
8190
</dependency>
8291
<dependency>
8392
<groupId>com.azure.spring</groupId>
8493
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
85-
<version>4.10.0</version>
8694
</dependency>
8795
<dependency>
8896
<groupId>org.springframework.boot</groupId>
8997
<artifactId>spring-boot-starter-thymeleaf</artifactId>
9098
</dependency>
99+
100+
<dependencyManagement>
101+
<dependencies>
102+
<dependency>
103+
<groupId>com.azure.spring</groupId>
104+
<artifactId>spring-cloud-azure-dependencies</artifactId>
105+
<version>4.11.0</version>
106+
<type>pom</type>
107+
<scope>import</scope>
108+
</dependency>
109+
</dependencies>
110+
</dependencyManagement>
91111
```
92112

93113
---

articles/azure-app-configuration/quickstart-java-spring-app.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: mrm9084
66
ms.service: azure-app-configuration
77
ms.devlang: java
88
ms.topic: quickstart
9-
ms.date: 04/11/2023
9+
ms.date: 09/27/2023
1010
ms.custom: devx-track-java, mode-api, devx-track-extended-java
1111
ms.author: mametcal
1212
#Customer intent: As a Java Spring developer, I want to manage all my app settings in one place.
@@ -44,8 +44,19 @@ To install the Spring Cloud Azure Config starter module, add the following depen
4444
<dependency>
4545
<groupId>com.azure.spring</groupId>
4646
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
47-
<version>5.4.0</version>
4847
</dependency>
48+
49+
<dependencyManagement>
50+
<dependencies>
51+
<dependency>
52+
<groupId>com.azure.spring</groupId>
53+
<artifactId>spring-cloud-azure-dependencies</artifactId>
54+
<version>5.5.0</version>
55+
<type>pom</type>
56+
<scope>import</scope>
57+
</dependency>
58+
</dependencies>
59+
</dependencyManagement>
4960
```
5061

5162
### [Spring Boot 2](#tab/spring-boot-2)
@@ -54,8 +65,19 @@ To install the Spring Cloud Azure Config starter module, add the following depen
5465
<dependency>
5566
<groupId>com.azure.spring</groupId>
5667
<artifactId>spring-cloud-azure-appconfiguration-config-web</artifactId>
57-
<version>4.10.0</version>
5868
</dependency>
69+
70+
<dependencyManagement>
71+
<dependencies>
72+
<dependency>
73+
<groupId>com.azure.spring</groupId>
74+
<artifactId>spring-cloud-azure-dependencies</artifactId>
75+
<version>4.11.0</version>
76+
<type>pom</type>
77+
<scope>import</scope>
78+
</dependency>
79+
</dependencies>
80+
</dependencyManagement>
5981
```
6082

6183
---

articles/azure-app-configuration/use-feature-flags-spring-boot.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: azure-app-configuration
1212
ms.workload: tbd
1313
ms.devlang: java
1414
ms.topic: tutorial
15-
ms.date: 04/11/2023
15+
ms.date: 09/27/2023
1616
ms.author: mametcal
1717
ms.custom: mvc, devx-track-java
1818

@@ -55,8 +55,19 @@ The easiest way to connect your Spring Boot application to App Configuration is
5555
<dependency>
5656
<groupId>com.azure.spring</groupId>
5757
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
58-
<version>5.4.0</version>
5958
</dependency>
59+
60+
<dependencyManagement>
61+
<dependencies>
62+
<dependency>
63+
<groupId>com.azure.spring</groupId>
64+
<artifactId>spring-cloud-azure-dependencies</artifactId>
65+
<version>5.5.0</version>
66+
<type>pom</type>
67+
<scope>import</scope>
68+
</dependency>
69+
</dependencies>
70+
</dependencyManagement>
6071
```
6172

6273
### [Spring Boot 2](#tab/spring-boot-2)
@@ -65,8 +76,19 @@ The easiest way to connect your Spring Boot application to App Configuration is
6576
<dependency>
6677
<groupId>com.azure.spring</groupId>
6778
<artifactId>spring-cloud-azure-feature-management-web</artifactId>
68-
<version>4.10.0</version>
6979
</dependency>
80+
81+
<dependencyManagement>
82+
<dependencies>
83+
<dependency>
84+
<groupId>com.azure.spring</groupId>
85+
<artifactId>spring-cloud-azure-dependencies</artifactId>
86+
<version>4.11.0</version>
87+
<type>pom</type>
88+
<scope>import</scope>
89+
</dependency>
90+
</dependencies>
91+
</dependencyManagement>
7092
```
7193

7294
---

0 commit comments

Comments
 (0)