Use this when choosing default values for parameters.
Defaults
Defaults give parameters sensible values when none are supplied, making automation easier to use. Choose safe defaults, such as dry-run on or a test environment, and document them.
1. Defaults should be safe: smallest scope, no destructive action, dry run where possible.
2. Document them.
3. Make overrides explicit.
4. Avoid surprising defaults.
5. Review periodically.
no input → safe default → explicit override for risk
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as implicit defaults, hidden dependencies, duplicate dispatch, worker drift, timeout without cancellation, retries against non-idempotent operations and confusing control-plane completion with target convergence, choosing the cases most relevant to explicit versus implicit values, environment-sensitive defaults, schema/version drift and recording which default actually influenced a run.
Step 2 Common mistakes Narrow the fault
- Defaulting to production.
- Defaults that differ between tool versions.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Choose safe defaults (dry-run on, test environment).
- Document defaults.
- Avoid surprising defaults.
- Default values documented — behaviour
- Safe defaults (dry run, limited scope) — safety
- Override mechanism — flexibility
ReferenceWhy it matters1 section · depth on demand
What it is
Defaults are the values used when nothing is specified. Safe defaults (dry-run, smallest size, non-production) prevent accidents; risky defaults (delete, production) cause them.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Defaults are the values used when the caller does not provide one. Good defaults make automation easy to use and safe when parameters are forgotten; bad defaults turn a missing argument into an outage. The rule: a default should be the safest reasonable choice, not the most convenient one.
Examples of safe defaults:
| Parameter | Safe default |
|---|---|
| Mode | Dry run / check |
| Scope | One host or an explicit list, never "all" |
| Delete behaviour | Keep, unless --force |
| Parallelism | Low |
| Environment | None — must be specified |
Where a value has no safe default (target environment, credentials), require it explicitly and fail fast if it is missing.
parser.add_argument("--apply", action="store_true", help="make changes (default: dry run)")
parser.add_argument("--env", required=True, choices=["test", "prod"])
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Design > Defaults. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For explicit versus implicit values, environment-sensitive defaults, schema/version drift and recording which default actually influenced a run, prefer typed fields and stable IDs over human presentation text.