Use it as the entry point when something on the platform fails and you need to find the failing layer.
Automation Troubleshooting
Automation troubleshooting starts by capturing the exact run — code revision, inputs, target scope and logs — then finds the first step where what actually happened differs from what was expected, before rerunning or changing anything.
1. Troubleshoot by layer: input, environment, auth, connectivity, target, logic, state.
2. Read logs and exact errors.
3. Reproduce safely.
4. Fix root cause, add a test.
5. Update docs.
symptom → logs → layer → fix → test
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 Operational evidence path Verify boundary
symptom/time → source revision + run/job/attempt → effective inputs + exact target scope → scheduler/controller → transport → authentication → authorization → dependency/rendering → requested operation → accepted response → observed execution → effective target state → workload acceptance → first failing step → minimal change → original-test verification → regression/rollback closure
Healthy evidence: run identity and inputs are reproducible, the first failing step is evidenced on both controller and target sides, a minimal fix restores the original acceptance test, and unaffected targets remain unchanged.
Step 2 Target-state verification ladder Verify boundary
Automation Troubleshooting uses a strict target-state ladder for automation failure-boundary diagnosis: request accepted → job/task succeeded → target object changed → effective runtime state confirmed → original workload verified.
Step 3 Known-good, broken and when it is fixed Verify boundary
Known-good means the same automation path consumes the intended source revision, reaches successful terminal task state, direct target read-back matches desired state and the original service/use-case succeeds without regression. Include a negative or drift check where meaningful. A green automation dashboard is orchestration evidence only; end-to-end closure requires independent target and service verification.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: retries overwrite evidence, floating source or inventory changes during investigation, only the final error string is retained, or success is declared from job status without target/workload verification.
It does not show behavior outside the captured run, inputs, target set, evidence window or acceptance scope. Troubleshooting evidence is bounded by the captured run, targets, telemetry and acceptance test; absence of an error, a later successful retry or a green control-plane status cannot show the original failure is explained or every target is healthy.
Next check: Continue from the first unproven troubleshooting boundary: preserve immutable source, run/job/attempt, effective inputs and exact target IDs; correlate controller and target evidence; inspect the earliest transport, identity, authorization, dependency, rendering, operation or persistence divergence; then make the smallest justified change, read back effective target state and rerun the original workload/service acceptance check before declaring recovery.
Step 5 Native failure isolation and next-check logic Narrow the fault
Start with the original failed outcome and capture run/job ID, input/source revision and exact target scope. Verify input/preconditions, then rendering/validation, credentials/connectivity, task exit/API result, asynchronous completion, target read-back and finally the original service test. Stop at the first failing step and make one minimal change there. For retries, determine idempotency and partial state first. Preserve failure evidence before cleanup or rerun so the next attempt does not erase the cause.
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.
Subtopics
Go one level deeper into this subject.
Script Failure isolates interpreter, parsing, control-flow, dependency, command-execution and exit-status failures in a specific script invocation without assuming the last printed error is the root cause.
Subtopic Authentication FailureAuthentication Failure isolates why an automation identity cannot establish trusted identity with a controller, API, host or secret provider, distinguishing credential acquisition, presentation, trust and expiry from authorization.
Subtopic SSH FailureSSH Failure isolates automation connection failures across DNS/routing, TCP/22 reachability, server availability, host-key trust, key exchange, authentication, shell/subsystem and privilege transitions.
Subtopic API FailureAPI Failure isolates automation problems across endpoint/version discovery, DNS/TLS, authentication, authorization, request construction, server processing, asynchronous task state and target read-back.
Subtopic HTTP ErrorHTTP Error interprets HTTP status failures in automation by preserving method, URI, redirects, headers, body and server correlation data, then mapping status semantics to the actual authentication, authorization, validation, throttling or server boundary.
Subtopic TimeoutTimeout isolates where an automation operation exceeded a defined deadline—queue, connection, handshake, server processing, polling, dependency, target convergence or acceptance—rather than simply increasing the global timeout.
Subtopic Rate LimitRate Limit isolates throttling and quota exhaustion by identifying the limiter, key/scope, window, remaining budget and retry contract, then reducing request pressure or scheduling rather than treating throttling as random failure.
Subtopic Invalid InputInvalid Input isolates automation failures caused by wrong type, format, range, enum, relationship, encoding or semantic value before unsafe or partial execution reaches targets.
Subtopic Missing DependencyMissing Dependency isolates absent, incompatible or unreachable runtime requirements such as modules, binaries, libraries, collections, providers, interpreters, services or external APIs.
Subtopic Permission DeniedPermission Denied isolates authorization and target-access failures after identity is known, mapping the requested action to the effective principal, role/policy, resource scope and local privilege boundary.
Subtopic Inventory ProblemsInventory Problems isolates wrong, missing, duplicate or stale automation targets and target metadata before execution fans out to unintended hosts, devices, groups or environments.
Subtopic Template FailureTemplate Failure isolates parsing, variable resolution, filter/function, escaping, whitespace and semantic rendering errors before generated configuration or payload is applied.
Subtopic Variable ProblemsVariable Problems isolates wrong, missing, shadowed or unexpectedly coerced values by tracing variable definition, precedence, scope, defaults and runtime expansion to the effective value used by an operation.
Subtopic Idempotency FailureIdempotency Failure isolates automation that changes state or creates side effects on repeated execution despite already having reached the intended state.
Subtopic State DriftState Drift isolates divergence between authoritative desired state, automation-managed recorded state and live target state, identifying whether drift is intentional, external, stale-read or failed reconciliation.
Subtopic Terraform State ProblemsTerraform State Problems isolates failures involving backend access, workspace selection, state locks, serial/lineage, stale or missing objects, address moves, imports and divergence between Terraform/OpenTofu state and live infrastructure.
Subtopic Ansible Playbook FailureAnsible Playbook Failure isolates failures across inventory/host selection, variable precedence, collection/module resolution, connection/become, task execution, handlers and target convergence for a specific playbook run.
Subtopic PowerShell Remoting FailurePowerShell Remoting Failure isolates Windows remote execution across name resolution/network, WinRM listener, TLS/Kerberos/NTLM trust, authentication, session configuration, second-hop delegation and local authorization.
Subtopic Pipeline FailurePipeline Failure isolates CI/CD automation across trigger/ref, pipeline evaluation, variables/secrets, runner/toolchain, dependency/cache, stage/job, artifact, approval, deployment and environment acceptance boundaries.
Subtopic Webhook FailureWebhook Failure isolates event-delivery automation across subscription configuration, event production, endpoint reachability/TLS, signature validation, payload parsing, acknowledgement, retry/deduplication and downstream processing.
Subtopic Scheduled Job FailureScheduled Job Failure isolates jobs that do not trigger, start with wrong context, overlap, miss dependencies or fail after launch by separating scheduler decision from worker execution and target outcome.
Subtopic Partial DeploymentPartial Deployment isolates automation that changed only a subset of intended targets or layers, requiring an exact completion map before deciding whether to continue, roll back or reconcile.
Subtopic Rollback FailureRollback Failure isolates when compensating automation cannot restore a known-good state, recognizing that rollback is a forward operation with its own dependencies, permissions, data-loss constraints and verification requirements.
Subtopic Parallel Execution ProblemsParallel Execution Problems isolates race conditions, shared-resource contention, ordering violations, duplicate work and nondeterministic failures introduced by concurrent automation workers or targets.
Subtopic Secret / Credential FailureSecret / Credential Failure isolates automation failures caused by secret lookup, decryption, injection, versioning, expiry, rotation, cache, formatting or target credential mismatch while avoiding secret exposure in logs.
Subtopic Automation Validation FailureAutomation Validation Failure isolates why preflight, schema, syntax, configuration, policy, post-change or acceptance validation rejects an automation input or outcome, distinguishing a bad system state from a wrong or stale validation rule.
- Job failed ≠ root cause is the automation engine.
- Job succeeded ≠ effective target state or workload result is correct.
- Retry succeeded ≠ original failure mechanism is understood or removed.
- Changed symptom ≠ original incident is resolved.
- Run logs and exit codes — evidence
- Reproduce with same inputs in test — isolation
- Recent changes (code, dependencies, targets) — likely causes
ReferenceWhat it is1 section · depth on demand
Core model
Capture the symptom and time window; pin workflow/script revision, run/job/attempt identity, effective inputs and exact targets; separate scheduler/controller, transport, authentication, authorization, dependency, rendering, operation and target-state boundaries; preserve raw responses and timing; compare requested, accepted, observed, effective and workload states; make one bounded change at the earliest confirmed failure; rerun the original acceptance test and check for regression or partial fallout.
ReferenceHow it works1 section · depth on demand
How it works
Automation troubleshooting should locate the first divergence between source-of-truth input, rendered/validated intent, execution result, managed-system state and service outcome. Each layer has a different owner and evidence source. Successful orchestration is not the same as successful target mutation, and target mutation is not the same as workload recovery. Run ID, input revision and target identity anchor the chain.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Troubleshooting evidence is bounded by the captured run, targets, telemetry and acceptance test; absence of an error, a later successful retry or a green control-plane status cannot show the original failure is explained or every target is healthy.
In depth
Automation troubleshooting finds why an automation run did not produce the expected result. It works from the evidence of the run — inputs, version, logs, targets — towards the first step whose actual outcome differed from what was expected.
| Failure area | Typical signs |
|---|---|
| Inputs/data | Wrong values, validation errors |
| Credentials | 401/403, permission denied |
| Connectivity | Timeouts, unreachable |
| Code/template | Exceptions, rendering errors |
| Target behaviour | Command rejected, state not reached |
| Platform | Runner offline, queue backlog |
Preserve the failed run's logs and state before rerunning; a rerun can overwrite the evidence.
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.
Lowest-Good remediation source for Automation Troubleshooting. Documentation authority supports bounded reference claims only; it is not observed lab/production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Automation Troubleshooting troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Automation Troubleshooting.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |
Deep reference
Healthy vs suspicious evidence
Read the first failed boundary and partial-completion output
Automation troubleshooting output is most useful when it preserves correlation identity, selected targets, the first failing step, retry history, partial changes and final read-back. Do not reduce a multi-target run to failed=true; the operator needs to know whether the failure occurred before mutation, on one target after others changed, or after the controller completed but the target never converged.
Normalized failure record:
run_id=auto-20260916-1842 source_revision=3f91d2a targets=12
completed=9 failed=1 not_started=2
first_error_boundary=target_api
failed_target=sw-core-02 operation=replace_ntp_server
error_class=authentication status=401 request_id=7d3a...
retry_count=1 retry_result=same_failure
partial_changes=sw-edge-01.09
final_readback=9_converged/1_unchanged/2_not_attempted
Interpret the first_error_boundary before changing anything: input/selection failures require fixing scope or data; controller/worker failures require execution-path evidence; credential/API failures require identity/authorization/contract checks; timeout after an accepted request is ambiguous, not automatically failed, until target/task read-back resolves it. Partial completion means rollback/recovery scope is the changed subset, not the whole inventory. Preserve the first concrete error even when later cleanup also fails. A retry is safe only after idempotency and current target state are known; otherwise the retry can duplicate or overwrite a successful-but-unacknowledged change. Close only when each intended target is reconciled to a known terminal state and the original service-level verification is repeated.