All environment variables and how the server loads them.
Overview
Configuration is managed by the ServerConfig dataclass in config.py. It reads environment variables at startup via python-dotenv (from a .env file) and os.getenv() with defaults. A global singleton config is created at import time and used throughout the application.
Environment Variables
Azure Authentication
Variable
Default
Description
AZURE_SUBSCRIPTION_ID
—
Default subscription ID. Can also be set via set_subscription tool at runtime.
AZURE_TENANT_ID
—
Azure AD tenant ID (for Service Principal auth)
AZURE_CLIENT_ID
—
Service Principal application/client ID
AZURE_CLIENT_SECRET
—
Service Principal secret
AZURE_DEFAULT_LOCATION
eastus
Default Azure region for new resources
If AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID are all set, the server uses Service Principal authentication. Otherwise, it falls back to Azure CLI / Managed Identity.