AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

azure-appconfiguration-java

Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots. Triggers: "ConfigurationClient java", "app configuration java", "feature flag java", "configuration setting java", "azure config java".

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read microsoft--azure-appconfiguration-java at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 2

references/examples.md · 24000

iguration config.setSetting("app/database/timeout", "30000"); config.setSetting("app/cache/ttl", "3600");

    // Get configuration
    String timeout = config.getSetting("app/database/timeout");
    System.out.println("Database timeout: " + timeout);
    
    // Feature flags
    config.setFeatureEnabled("dark-mode", true);
    
    if (config.isFeatureEnabled("dark-mode")) {
        System.out.println("Dark mode is enabled");
    }
    
    // Get all app settings
    Map<String, String> appSettings = config.getAllSettings("app/");
    System.out.println("\n=== All App Settings ===");
    appSettings.forEach((key, value) -> 
        System.out.printf("%s = %s%n", key, value));
    
    // Create a snapshot for release
    config.createSnapshot("release-" + System.currentTimeMillis(), "app/");
}

}


## Environment Variables

```bash
AZURE_APPCONFIG_CONNECTION_STRING=Endpoint=https://<store>.azconfig.io;Id=<id>;Secret=<secret>
AZURE_APPCONFIG_ENDPOINT=https://<store>.azconfig.io

# For DefaultAzureCredential
AZURE_CLIENT_ID=<service-principal-client-id>
AZURE_CLIENT_SECRET=<service-principal-secret>
AZURE_TENANT_ID=<tenant-id>

Best Practices

  1. Use labels — Separate configurations by environment (Dev, Staging, Production)
  2. Use snapshots — Create immutable snapshots for releases
  3. Feature flags — Use for gradual rollouts and A/B testing
  4. Secret references — Store sensitive values in Key Vault, not App Configuration
  5. Conditional requests — Use ETags for optimistic concurrency
  6. Read-only protection — Lock critical production settings
  7. Use Entra ID — Preferred over connection strings for security
  8. Async client — Use for high-throughput scenarios