Skip to content

Amend pre-prod promotion runbook - #202

Merged
steventux merged 1 commit into
mainfrom
update-preprod-promotion-doc
Sep 9, 2026
Merged

Amend pre-prod promotion runbook#202
steventux merged 1 commit into
mainfrom
update-preprod-promotion-doc

Conversation

@steventux

@steventux steventux commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

Update pre-prod promotion runbook with things we found did not work when promoting Somerset to production:

  • Cleanup script not present on VM
  • azcmagent disconnect doesn't work without --force-local-only option.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13653

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

@steventux steventux changed the title Amend pre-prod promotion docs with 'reality' Amend pre-prod promotion runbook Sep 7, 2026
Docs mention a cleanup script which may not be present on the VM.
They also assume the VM can manage Azure resources which is not the case
so the azcmagent disconnect command needs to force local execution.
@steventux
steventux force-pushed the update-preprod-promotion-doc branch from 67a9675 to 326baf4 Compare September 7, 2026 09:45
@steventux
steventux requested review from carlosmartinez and a lite review from Copilot September 7, 2026 09:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Changes are documentation-only and the remaining feedback is minor clarity/consistency improvements with straightforward fixes.

Pull request overview

Updates the “promote VM from pre-prod to prod” deployment runbook to reflect lessons learned during a real promotion, clarifying prerequisites and adjusting the Arc disconnect procedure and verification guidance.

Changes:

  • Add a prerequisite to ensure the cleanup script is already present on the VM.
  • Update the cleanup step to run the script from C:\ArcSetup\... rather than a relative repo path.
  • Adjust Arc disconnect instructions to use a local-only disconnect and simplify verification guidance.
File summaries
File Description
docs/deployment/runbooks/promote-vm-preprod-to-prod.md Runbook tweaks for cleanup readiness, Arc disconnect behavior, and verification steps during promotion.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/deployment/runbooks/promote-vm-preprod-to-prod.md
Comment on lines 53 to +58
## Step 2 — Disconnect from the pre-prod Arc subscription

Still on the VM, elevated:

```powershell
azcmagent disconnect
azcmagent disconnect --force-local-only
@steventux
steventux merged commit 634a399 into main Sep 9, 2026
10 checks passed
@steventux
steventux deleted the update-preprod-promotion-doc branch September 9, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants