Runbook Template and Example for an Application
A runbook template for an app, a step-by-step procedure for a recurring task or incident, a filled-in rollback example and a guide to where to keep the runbook.
Overview & context
A runbook is a document with clear procedures so that a recurring operations event or incident is resolved the same way every time. A runbook should say when to use it, what to check, how to fix the problem, how to verify the result and whom to escalate to. Below is a runbook template for a general application, a filled-in example and a guide to attaching all the links you need while running it to the app in AboutTheApp.
1. What is a runbook and what types are there?
A runbook is a documented set of steps for a specific operations task, such as restarting a service, backing up a database or responding to an outage. The point is that the task goes the same way no matter who does it. Without a runbook, the procedure is often improvised from scattered documentation, shell history or a colleague's memory, usually while that colleague is on holiday.
According to the Octopus Deploy documentation, runbooks cover routine operations, emergency operations and infrastructure provisioning. The same split works for your own app without any tool, because each group needs a different template and has a different reader.
The two terms aren't used consistently. Many teams call a detailed procedure for one task a runbook and a wider response plan with roles, communication and decisions a playbook. Agree on one meaning in your team and name your documents accordingly.
| Type | Example | When it's used |
|---|---|---|
| Routine operations | Database backup, certificate renewal, patching | Regularly, on a schedule |
| Emergency operations | Restart a service, switch DNS, roll back a release | During an incident or an outage |
| Infrastructure provisioning | Create or tear down a test environment | When an environment is created or retired |
2. Runbook template you can copy
The template follows the parts common in incident runbooks: trigger conditions, immediate actions, investigation and resolution. It adds verification, rollback and escalation. Drop what doesn't apply; a routine task usually needs no escalation.
# <Task or incident name>
App: <name> · Environment: <production | staging | all>
Owner: <person or team> · Last reviewed: <YYYY-MM-DD>
Estimated time: <minutes> · Risk: <low | medium | high>
## 1. When to use this runbook
Trigger: an alert, a user report or a scheduled date.
When not to use it and who to hand the task to.
## 2. What you need
- Access and permissions: <who grants them>
- Links: monitoring, logs, app settings, database (read-only), repository
- Last known good version: <where to find it>
## 3. Immediate actions
1. Record the time and reason for the intervention (incident number).
2. <First check, for example service status>
## 4. Investigation
- What to check and where: <link> · Expected value: <value>
- Decision: if <condition>, continue with step 5, otherwise step 7.
## 5. Resolution steps
1. <One action, an exact command or button>
2. <Next action>
Stop and escalate if: <condition>.
## 6. Verification
- <Check that the app works: URL, expected response, metric>
## 7. Rollback
How to undo the changes if the fix didn't help.
## 8. Escalation and communication
| Level | Who | When | Contact |
Message template for customers and the team: <link>
## 9. After the intervention
- Note what happened and fix the runbook if the procedure was off.
- Link to the incident record: <link>3. Runbook example: roll back the latest release
This example is short and generic. Its steps follow the rollback Octopus Deploy shows in its demo: record the incident, find the last good release, get a second person to approve production, roll back, verify and notify the team. Related situations are covered in deployment strategies, for example switching traffic back in a blue-green setup.
# Roll back the latest release
App: room-booking · Environment: production
Owner: Internal Systems team · Last reviewed: 2026-11-20
Estimated time: 15 minutes · Risk: medium
## 1. When to use this runbook
The error rate rises above 5% after a deployment, or sign-in stops working.
Don't use it for data errors; the "Restore from backup" runbook covers those.
## 2. What you need
- Permission to run deployments to production (granted by the engineering lead)
- Links: deployment history, monitoring, application logs
- Last good version: the previous entry in the deployment history
## 3. Immediate actions
1. Post the incident number and time in the #operations channel.
2. Check in monitoring that the errors started after the deployment.
## 4. Resolution steps
1. Find the last release that worked in production in the deployment history.
2. Ask a second person to approve the rollback (production).
3. Run the deployment of that version: workflow "Deploy", input version = <version>.
4. Wait for the deployment to finish, usually 3 to 5 minutes.
Stop and escalate if the deployment fails twice in a row.
## 5. Verification
- Sign-in works and /health returns 200.
- The error rate in monitoring drops below 1% within 10 minutes.
## 6. Escalation and communication
| Level | Who | When |
| 1 | On-call engineer | Right away |
| 2 | Engineering lead | After 15 minutes without improvement |
Message to the team: "We rolled back version X to Y, investigating the cause."
## 7. After the intervention
- Attach a link to the failed version to the incident record.
- Note anything unexpected about the rollback and update this runbook.4. How to write a runbook someone else can follow
A runbook works when a person who knows the app only loosely can follow it. Write it assuming the reader has nobody nearby to ask.
5. Where to store a runbook and how to link it to the app, so it's always at hand
Store the runbook itself where the team edits it regularly, even in a repository or an internal wiki. Keep in mind that fixing a problem requires the person doing it to have access to everything the runbook mentions, such as logs, app settings, a read-only database or the deployment history. If these links aren't part of the runbook, keep them right next to the app.
In AboutTheApp, you can add a runbook as a link to the app. You put it in the Documentation, Support or DevOps & Infrastructure category and the links its steps refer to, for example, in Monitoring & Quality. AboutTheApp doesn't store the runbook text or any credentials, only the links.
Store passwords, keys and tokens in a password manager or in the platform's secret variables, and in the runbook only link to them.
- 1
Open the app in the product editor
Click edit on the app's card and go to the Resources section.
- 2
Add a resource for the runbook
Click Add resource, pick a category and paste the runbook address. Name it after the task, for example "Runbook: roll back a release", and put the environment it applies to in the description.
- 3
Add the links from the runbook steps
Add links to the logs, app settings, deployment history and the read-only database. Support or a tester then finds everything for the problem in one place.
- 4
Set the visibility
Mark links to internal tools as Private. They're shown only to signed-in team members and to people who enter the unlock code.
- 5
Separate customers and environments
If a customer or an environment has its own runbook, attach the link directly to it.
6. How to keep a runbook current and usable
A procedure nobody has tried tends to fail at the worst moment. Test it in a staging environment before you need it. In its introduction to runbooks, Octopus Deploy recommends starting with a task that your team repeats or is nervous about, then documenting and testing it.
After each use, update the runbook to reflect what worked better in practice, if the procedure deviated from the original. Include a regular review in your software maintenance plan, for example once a year, and record the date of the last review in the document itself. If the runbook changes, keep the history of changes, for example in the repository.
Once a manual procedure has proved itself, you can automate it step by step. Start with low-risk steps, such as log cleanup, and leave restarting a key service for later. An automated step must record when it ran, what it did and how it ended, so its actions can be traced afterwards.
Frequently asked questions
What is a runbook?
A runbook is a documented set of steps for an operations task or an incident, such as restarting a service, backing up a database or rolling back a release. It makes the task go the same way no matter who does it.
What's the difference between a runbook and a playbook?
The terms aren't used consistently. Many teams call a detailed procedure for one task a runbook and a wider response plan with roles and communication a playbook. What matters more is that your team names its documents the same way.
What does a runbook example look like?
A runbook has a task name, an owner and a last-reviewed date, a trigger, the access and links it needs, steps with expected results, a rollback and an escalation. The rollback example in section 3 shows all of these parts filled in.
Is a runbook the same as an Azure Automation runbook?
No. In Azure Automation, a runbook is a script, for example in PowerShell or a graphical one, that the service runs automatically. A runbook in this guide is a document for a person. They can work together, because the steps of a document can later be automated.
Who should write a runbook?
Ideally the person who actually handled the task or the incident, whether a developer, an ops engineer or support. Someone else should then try the finished runbook, because they'll spot the steps that seem obvious to the author.
Where should you store a runbook?
Ideally in a repository or a wiki where the team edits it regularly. Then add a link to the runbook and to every tool its steps use to the app. In AboutTheApp these are resources of the app that you can mark as Private.
How often should you review a runbook?
After every use and regularly, for example once a year. Record the date of the last review in the document and test the runbook in staging during the review.
In short
A runbook makes sure an operations task or an incident is handled the same way every time, whoever does it. Write it from the template, test it in staging and link its logs, settings and deployment history to the app in AboutTheApp.
Want a runbook and links for its steps next to every app?
Add your app to AboutTheApp for free and attach links to the runbook, logs, monitoring and deployments.