skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

azure-appconfiguration-py

Feature flags and dynamic settings

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/microsoft/skills --skill azure-appconfiguration-py

Overview

What This Skill Does

Azure App Configuration SDK for Python provides a client for reading and writing key-value settings, feature flags, and labeled configurations stored in Azure App Configuration. It supports filtering by key prefix or label, creating point-in-time snapshots, and locking settings to prevent changes.

Application

When to use this Skill

Documentation

Show Skills.md file

Azure App Configuration SDK for Python

Centralized configuration management with feature flags and dynamic settings.

Installation

pip install azure-appconfiguration

Environment Variables

AZURE_APPCONFIGURATION_ENDPOINT=https://<name>.azconfig.io  # Required for Entra ID auth
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production

Authentication & Lifecycle

🔑 Two rules apply to every code sample below:

  1. Prefer DefaultAzureCredential. It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation.
    • Local dev: DefaultAzureCredential works as-is.
    • Production: set AZURE_TOKEN_CREDENTIALS=prod (or AZURE_TOKEN_CREDENTIALS=<specific_credential>) to constrain the credential chain to production-safe credentials.
  2. Wrap every client in a context manager so HTTP transports, sockets, and token caches are released deterministically:
Lines 1 - 25 of 246

Recommendations

Explore other random skills

All skillsMy patterns