Use this when documenting and writing useful error messages.
Error Messages
Documented error messages explain what each error means and what to do, and good automation writes errors that name the failed step, the target and the likely cause.
1. Good error messages say what failed, why, and what to do.
2. Catalogue common errors.
3. Link to docs.
4. Include context (target, step).
5. Review with support.
error → message → documented fix
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 Common mistakes Narrow the fault
- Messages without the next step.
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.
- Say which step and target failed.
- Give the likely cause and next action.
- Avoid leaking secrets in errors.
- Error message catalogue (message → meaning → fix) — troubleshooting
- Actionable error texts in code — quality
- Links to docs in errors — help
ReferenceWhy it matters1 section · depth on demand
What it is
Error message documentation lists common errors, their meaning and the fix.
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Good error messages state what failed, the target, the cause if known and the next step. Documenting the common ones in the runbook saves operators from searching code or logs.
Example
| Message | Meaning | Fix |
|---|---|---|
401 Unauthorized | Token missing/expired | Refresh token |
UNREACHABLE! ssh: connect... timed out | No SSH path | Check ACL/route/port 22 |
Error acquiring the state lock | Another run active | Wait; force-unlock only if stale |
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 Documentation > Error Messages. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/automation/automation-runbook-types · confidence 94%