The big brain box that is Jamie McCrindle wrote an excellent blog on how to handle secret rotation within Azure using terraform. This served as the cornerstone for our service principal rotation mechanism recently and everything was fine and dandy right up until it wasn't.
Terraform Service Principal Rotation
· 6 min read