Automation · Self-Service Automation
Deprovisioning
Cheat sheet · https://pcornel.dk/topic.php?topic=6032
Answer
Deprovisioning in self-service removes what was provisioned — VMs, accounts, access, DNS records — when a request expires or is cancelled, preventing forgotten resources.
Remember
- Expiry or cancellation must trigger removal.
- Clean up DNS, IPAM and access too.
- Notify the owner.
First checks
- Deprovision workflow — retirement
- Expiry-based cleanup — temporary resources
- Removal from CMDB/monitoring/backup/DNS — cleanup
Verify in this order
expiry/request → deprovision → cleanup references
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6032