You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-integrate-app-configuration.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,17 @@
1
1
---
2
2
title: Integrate Azure App Configuration with Service Connector
3
-
description: In this document, learn how to integrate Azure App Configuration into your application with Service Connector
3
+
description: Use these code samples to integrate Azure App Configuration into your application with Service Connector.
4
4
author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: how-to
8
-
ms.date: 02/02/2024
8
+
ms.date: 07/24/2025
9
+
#customer intent: As a cloud developer, I want to connect my cloud services to Azure App Configuration by using Service Connector.
9
10
---
10
11
11
12
# Integrate Azure App Configuration with Service Connector
12
13
13
-
This page shows supported authentication methods and clients, and shows sample code you can use to connect Azure App Configuration to other cloud services using Service Connector. You might still be able to connect to App Configuration using other methods. This page also shows default environment variable names and values you get when you create the service connection.
14
+
This page shows supported authentication methods and clients. It provides sample code you can use to connect Azure App Configuration to other cloud services using Service Connector. You might be able to connect to App Configuration using other methods. This page also shows default environment variable names and values you get when you create the service connection.
14
15
15
16
## Supported compute services
16
17
@@ -24,7 +25,7 @@ Service Connector can be used to connect the following compute services to Azure
24
25
25
26
## Supported authentication types and client types
26
27
27
-
The table below shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure App Configuration using Service Connector. A “Yes” indicates that the combination is supported, while a “No” indicates that it is not supported.
28
+
This table shows which combinations of authentication methods and clients are supported for connecting your compute service to Azure App Configuration using Service Connector. A "Yes" indicates that the combination is supported, while a "No" indicates that it isn't supported.
28
29
29
30
30
31
| Client type | System-assigned managed identity | User-assigned managed identity | Secret/connection string | Service principal |
@@ -39,7 +40,7 @@ This table indicates that all combinations of client types and authentication me
39
40
40
41
## Default environment variable names or application properties and sample code
41
42
42
-
Use the connection details below to connect compute services to Azure App Configuration stores. For more information about naming conventions, check the [Service Connector internals](concept-service-connector-internals.md#configuration-naming-convention) article.
43
+
Use the following connection details to connect compute services to Azure App Configuration stores. For more information, see [Configuration naming convention](concept-service-connector-internals.md#configuration-naming-convention).
43
44
44
45
### System-assigned managed identity
45
46
@@ -48,7 +49,8 @@ Use the connection details below to connect compute services to Azure App Config
Refer to the steps and code below to connect to Azure App Configuration using a system-assigned managed identity.
52
+
53
+
To connect to Azure App Configuration using a system-assigned managed identity, refer to the following steps and code.
52
54
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
53
55
54
56
### User-assigned managed identity
@@ -59,21 +61,23 @@ Refer to the steps and code below to connect to Azure App Configuration using a
59
61
| AZURE_APPCONFIGURATION_CLIENTID | Your client ID |`<client-ID>`|
60
62
61
63
#### Sample code
62
-
Refer to the steps and code below to connect to Azure App Configuration using a user-assigned managed identity.
64
+
65
+
To connect to Azure App Configuration using a user-assigned managed identity, refer to the following steps and code.
63
66
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
64
67
65
68
### Connection string
66
69
67
70
> [!WARNING]
68
-
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
71
+
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application. It carries risks that aren't present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
69
72
70
73
> [!div class="mx-tdBreakAll"]
71
74
> | Default environment variable name | Description | Sample value |
1. Authenticate using `Azure.Identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
17
+
18
+
1. Authenticate using `Azure.Identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using this code, uncomment the part of the code snippet for the authentication type you want to use.
17
19
18
20
```csharp
19
21
using Azure.Identity;
@@ -45,6 +47,7 @@ ms.author: wchi
45
47
### [Java](#tab/java)
46
48
47
49
1. Add the following dependencies in your *pom.xml* file:
50
+
48
51
```xml
49
52
<dependency>
50
53
<groupId>com.azure</groupId>
@@ -57,7 +60,8 @@ ms.author: wchi
57
60
<version>1.1.5</version>
58
61
</dependency>
59
62
```
60
-
1. Authenticate using `azure-identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
63
+
64
+
1. Authenticate using `azure-identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using this code, uncomment the part of the code snippet for the authentication type you want to use.
61
65
62
66
```java
63
67
// Uncomment the following lines corresponding to the authentication type you want to use.
@@ -87,11 +91,14 @@ ms.author: wchi
87
91
### [Python](#tab/python)
88
92
89
93
1. Install dependencies.
94
+
90
95
```bash
91
96
pip install azure-appconfiguration
92
97
pip install azure-identity
93
98
```
94
-
1. Authenticate using `azure-identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
99
+
100
+
1. Authenticate using `azure-identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using this code, uncomment the part of the code snippet for the authentication type you want to use.
101
+
95
102
```python
96
103
import os
97
104
from azure.appconfiguration import AzureAppConfigurationClient
@@ -119,11 +126,13 @@ ms.author: wchi
119
126
### [NodeJS](#tab/nodejs)
120
127
121
128
1. Install dependencies.
129
+
122
130
```bash
123
131
npm install --save @azure/identity
124
132
npm install @azure/app-configuration
125
133
```
126
-
1. Authenticate using `@azure/identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using the code below, uncomment the part of the code snippet for the authentication type you want to use.
134
+
135
+
1. Authenticate using `@azure/identity` and get the Azure App Configuration endpoint from the environment variables added by Service Connector. When using this code, uncomment the part of the code snippet for the authentication type you want to use.
127
136
128
137
```javascript
129
138
import { DefaultAzureCredential,ClientSecretCredential } from "@azure/identity";
0 commit comments