Skip to content

Runbooks

Operational procedures for the Microtec ERP platform. These runbooks are the authoritative reference for routine operations, incident management, and recovery procedures.

Audience: Platform engineers, DevOps, on-call engineers
Scope: Azure Container Apps–based production platform + on-prem environments


Available Runbooks

#RunbookDescription
1Deploy New ServiceEnd-to-end guide for adding a new microservice from .NET project creation through first production deployment
2Scale a ServiceConfigure KEDA autoscaling rules (CPU, memory, HTTP, cron) and apply them without downtime
3Key RotationSafely rotate Azure Key Vault secrets and force CAE pods to pick up the new values
4Incident ResponseP0/P1 incident playbook — assess, contain, rollback, and write a post-mortem
5Keycloak Realm RecoveryRecover a broken Keycloak realm, restore flow priorities, and re-enable clients
6Database MaintenanceSQL Server backup, restore, index rebuild, and statistics update procedures
7Certificate RenewalRenew TLS certificates for Azure Front Door custom domains and on-prem NGINX
8Disaster RecoveryFull-environment recovery from a region outage or critical data loss event
9On-Prem Service ManagementManage Docker Compose services on eg-sv-01, eg-sv-vip, and build agents

Runbook Conventions

Severity Labels

Runbook steps are labelled with one of:

LabelMeaning
[INFO]Informational — no action required
[ACTION]Required step — execute exactly as written
[VERIFY]Verification step — confirm before proceeding
[WARNING]Risk of data loss or outage if skipped
[ROLLBACK]Execute only when rolling back a failed operation

Environment Shortcodes

ShortcodeEnvironmentDomain
devDevelopmentmicrotec-test.com
stgStagingmicrotecstage.com
preprodPre-production
uatUser Acceptance Testingmicrotec-uat.com
prodProductiononlinemicrotec.com.sa

Common Variables

Most runbooks reference these shell variables. Export them before running any commands:

bash
export ENV="dev"          # Target environment
export SVC="my-service"   # Service short name
export RG="mic-erp-be-${ENV}-apps-private-rg"
export CAE_NAME="mic-erp-be-${ENV}-cae-private"
export ACR="micerpbe${ENV}acr"

On-Call Reference

ResourceURL / Contact
Azure Portalhttps://portal.azure.com
Azure DevOpshttps://dev.azure.com/microtec
App Insights (dev)Azure Portal → mic-erp-be-dev-appinsights
Seq (dev)http://localhost:1234 (via VPN)
RabbitMQ UIhttp://localhost:15672 (via VPN)
SonarQubehttp://192.168.120.254:8095
NPM Proxyhttp://192.168.120.12:8100

VPN required for all on-prem URLs. Contact your team lead for VPN credentials.


Maintenance Windows

Standard maintenance windows (all times UTC+3 / Riyadh):

TypeScheduleDuration
Routine deploymentsSun–Thu, 22:00–02:00Up to 4 h
Database maintenanceFriday, 01:00–05:00Up to 4 h
Emergency patchesAny time — notify stakeholders firstMinimum required

Internal Documentation — Microtec Platform Team