Skip to content

Commit b6006ae

Browse files
Freshness.
1 parent b5f1418 commit b6006ae

File tree

3 files changed

+42
-20
lines changed

3 files changed

+42
-20
lines changed

articles/service-connector/how-to-integrate-app-configuration.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
---
22
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.
44
author: maud-lv
55
ms.author: malev
66
ms.service: service-connector
77
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.
910
---
1011

1112
# Integrate Azure App Configuration with Service Connector
1213

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.
1415

1516
## Supported compute services
1617

@@ -24,7 +25,7 @@ Service Connector can be used to connect the following compute services to Azure
2425

2526
## Supported authentication types and client types
2627

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.
2829

2930

3031
| 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
3940

4041
## Default environment variable names or application properties and sample code
4142

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).
4344

4445
### System-assigned managed identity
4546

@@ -48,7 +49,8 @@ Use the connection details below to connect compute services to Azure App Config
4849
| AZURE_APPCONFIGURATION_ENDPOINT | App Configuration endpoint | `https://<App-Configuration-name>.azconfig.io` |
4950

5051
#### Sample code
51-
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.
5254
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
5355

5456
### User-assigned managed identity
@@ -59,21 +61,23 @@ Refer to the steps and code below to connect to Azure App Configuration using a
5961
| AZURE_APPCONFIGURATION_CLIENTID | Your client ID | `<client-ID>` |
6062

6163
#### 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.
6366
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
6467

6568
### Connection string
6669

6770
> [!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.
6972
7073
> [!div class="mx-tdBreakAll"]
7174
> | Default environment variable name | Description | Sample value |
7275
> | --------------------------------- | ------------| ------------ |
7376
> | AZURE_APPCONFIGURATION_CONNECTIONSTRING | Your App Configuration Connection String | `Endpoint=https://<App-Configuration-name>.azconfig.io;Id=<ID>;Secret=<secret>` |
7477
75-
#### Sample Code
76-
Refer to the steps and code below to connect to Azure App Configuration using a connection string.
78+
#### Sample Code
79+
80+
To connect to Azure App Configuration using a connection string, refer to the following steps and code.
7781
[!INCLUDE [code sample for app config](./includes/code-appconfig-secret.md)]
7882

7983

@@ -87,12 +91,11 @@ Refer to the steps and code below to connect to Azure App Configuration using a
8791
| AZURE_APPCONFIGURATION_TENANTID | Your tenant ID | `<tenant-ID>` |
8892

8993
#### Sample code
90-
Refer to the steps and code below to connect to Azure App Configuration using a service principaL.
91-
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
9294

93-
## Next steps
95+
To connect to Azure App Configuration using a service principal, refer to the following steps and code.
96+
[!INCLUDE [code sample for app config](./includes/code-appconfig-me-id.md)]
9497

95-
Follow the tutorial listed below to learn more about Service Connector.
98+
## Next step
9699

97100
> [!div class="nextstepaction"]
98101
> [Learn about Service Connector concepts](./concept-service-connector-internals.md)

articles/service-connector/includes/code-appconfig-me-id.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
author: wchigit
33
ms.service: service-connector
44
ms.topic: include
5-
ms.date: 10/20/2023
5+
ms.date: 07/24/2025
66
ms.author: wchi
77
---
88

99
### [.NET](#tab/dotnet)
1010

1111
1. Install dependencies.
12+
1213
```bash
1314
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
1415
dotnet add package Azure.Identity
1516
```
16-
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.
1719

1820
```csharp
1921
using Azure.Identity;
@@ -45,6 +47,7 @@ ms.author: wchi
4547
### [Java](#tab/java)
4648
4749
1. Add the following dependencies in your *pom.xml* file:
50+
4851
```xml
4952
<dependency>
5053
<groupId>com.azure</groupId>
@@ -57,7 +60,8 @@ ms.author: wchi
5760
<version>1.1.5</version>
5861
</dependency>
5962
```
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.
6165
6266
```java
6367
// Uncomment the following lines corresponding to the authentication type you want to use.
@@ -87,11 +91,14 @@ ms.author: wchi
8791
### [Python](#tab/python)
8892
8993
1. Install dependencies.
94+
9095
```bash
9196
pip install azure-appconfiguration
9297
pip install azure-identity
9398
```
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+
95102
```python
96103
import os
97104
from azure.appconfiguration import AzureAppConfigurationClient
@@ -119,11 +126,13 @@ ms.author: wchi
119126
### [NodeJS](#tab/nodejs)
120127
121128
1. Install dependencies.
129+
122130
```bash
123131
npm install --save @azure/identity
124132
npm install @azure/app-configuration
125133
```
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.
127136
128137
```javascript
129138
import { DefaultAzureCredential,ClientSecretCredential } from "@azure/identity";

articles/service-connector/includes/code-appconfig-secret.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
author: wchigit
33
ms.service: service-connector
44
ms.topic: include
5-
ms.date: 10/24/2023
5+
ms.date: 07/24/2025
66
ms.author: wchi
77
---
88

99
### [.NET](#tab/dotnet)
1010

1111
1. Install dependencies.
12+
1213
```bash
1314
dotnet add package Microsoft.Extensions.Configuration.AzureAppConfiguration
1415
```
16+
1517
1. Get the App Configuration connection string from the environment variables added by Service Connector.
1618

1719
```csharp
@@ -28,14 +30,17 @@ ms.author: wchi
2830
### [Java](#tab/java)
2931

3032
1. Add the following dependencies in your *pom.xml* file:
33+
3134
```xml
3235
<dependency>
3336
<groupId>com.azure</groupId>
3437
<artifactId>azure-data-appconfiguration</artifactId>
3538
<version>1.4.9</version>
3639
</dependency>
3740
```
41+
3842
1. Get the App Configuration connection string from the environment variables added by Service Connector.
43+
3944
```java
4045
String connectionString = System.getenv("AZURE_APPCONFIGURATION_CONNECTIONSTRING");
4146
ConfigurationClient configurationClient = new ConfigurationClientBuilder()
@@ -46,10 +51,13 @@ ms.author: wchi
4651
### [Python](#tab/python)
4752

4853
1. Install dependencies.
54+
4955
```bash
5056
pip install azure-appconfiguration
5157
```
58+
5259
1. Get the App Configuration connection string from the environment variables added by Service Connector.
60+
5361
```python
5462
import os
5563
from azure.appconfiguration import AzureAppConfigurationClient
@@ -61,9 +69,11 @@ ms.author: wchi
6169
### [NodeJS](#tab/nodejs)
6270

6371
1. Install dependencies.
72+
6473
```bash
6574
npm install @azure/app-configuration
6675
```
76+
6777
1. Get the App Configuration connection string from the environment variables added by Service Connector.
6878

6979
```javascript

0 commit comments

Comments
 (0)