Prefer intuitive, user-friendly values for configuration options over technical "magic strings" or codes that require special knowledge. This applies to both environment variables and programmatic configuration options.
Prefer intuitive, user-friendly values for configuration options over technical “magic strings” or codes that require special knowledge. This applies to both environment variables and programmatic configuration options.
When designing configuration options:
Example:
// Instead of requiring a specific audience string:
clientOptions.AzureCloud = "https://management.azure.com/.default"; // Difficult to remember
// Provide user-friendly enumerated values:
clientOptions.AzureCloud = AzureCloudType.Global; // More intuitive
// Support both environment variables and programmatic configuration:
// In code:
clientOptions.Diagnostics = { IsTelemetryEnabled = false };
// Or via environment variable (documented in README):
// Set AZURE_TELEMETRY_DISABLED=true
For environment variables, document all accepted values and include examples showing both the variable name and possible values.
Enter the URL of a public GitHub repository