Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-appconfiguration-java.md
1# App Configuration — Java SDK Quick Reference23> Condensed from **azure-appconfiguration-java**. Full patterns (feature flags,4> secret references, snapshots, async client, conditional requests)5> in the **azure-appconfiguration-java** plugin skill if installed.67## Install8```xml9<dependency>10<groupId>com.azure</groupId>11<artifactId>azure-data-appconfiguration</artifactId>12<version>1.8.0</version>13</dependency>14<dependency>15<groupId>com.azure</groupId>16<artifactId>azure-identity</artifactId>17</dependency>18```1920## Quick Start2122> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.2324```java25import com.azure.data.appconfiguration.ConfigurationClientBuilder;26import com.azure.identity.DefaultAzureCredentialBuilder;27var client = new ConfigurationClientBuilder()28.credential(new DefaultAzureCredentialBuilder().build())29.endpoint(System.getenv("AZURE_APPCONFIG_ENDPOINT"))30.buildClient();31```3233## Best Practices34- Use labels — separate configurations by environment (Dev, Staging, Production)35- Use snapshots — create immutable snapshots for releases36- Feature flags — use for gradual rollouts and A/B testing37- Secret references — store sensitive values in Key Vault38- Conditional requests — use ETags for optimistic concurrency39- Read-only protection — lock critical production settings40- Use Entra ID — preferred over connection strings41- Async client — use for high-throughput scenarios42