Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Transaction

Direct answer

A transaction groups changes so they all succeed or all fail together, such as a database transaction or NETCONF candidate commit, avoiding half-applied changes.

When to use this

Use this when changes must all succeed or all fail.

First 30 seconds

1. Transactions apply all-or-nothing.

2. Use where available (NETCONF candidate, DB transactions, configure replace).

3. Many systems aren't transactional — design compensations.

4. Confirmed commits protect access.

5. Know the limits.

Operational verification

begin → changes → commit (or rollback)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation rollback and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformautomation rollback and recovery · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when changes must all succeed or all fail.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Assuming APIs are transactional when they are not.
Evidence references

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.

observation · 1
Key points
  • A transaction applies all changes or none.
  • Examples: database transactions, NETCONF candidate commit.
  • Not every system supports transactions.
Key checks
  • NETCONF candidate + commit / commit confirmed — transactional config
  • Database transactions — atomicity
  • Terraform plan/apply (not transactional across resources) — awareness
ReferenceWhy it matters1 section · depth on demand

What it is

A transaction applies several changes as one unit: all succeed or none (NETCONF candidate+commit, database transactions, Junos commit).

ReferenceImportant terms & boundaries2 sections · depth on demand

Example

Junos/IOS XR style: configure → commit confirmed 5 → verify → commit. If you lose access, the device rolls back after 5 minutes. NETCONF offers the same with candidate datastore and <confirmed-commit>.

In depth

A transaction groups several changes so they either all succeed or none take effect. Databases offer this natively; some network and infrastructure systems do too — NETCONF with a candidate datastore commits a whole change at once, and Junos/IOS XR-style commit models validate before activating. Where no native transaction exists, automation has to emulate it with backups and compensating steps.

SystemTransaction support
NETCONF candidate + commitYes, all-or-nothing
Confirmed commitAuto-rollback unless confirmed
Terraform applyPer resource; no global rollback
Plain CLI/SSHNo — line by line
SQLBEGIN … COMMIT/ROLLBACK
<commit><confirmed/><confirm-timeout>300</confirm-timeout></commit>

A confirmed commit is a safety net for remote changes: if the change cuts off management access, the device rolls back by itself.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docautomation rollback and recovery current

Authoritative/upstream documentation reviewed for bounded claims in Rollback & Recovery > Transaction. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments · confidence 94%
Confirmation

Confirm action

Continue?