$ rain --version
Rain v1.24.2 linux/amd64
When rain calls UpdateStackSet, I suspect it always passes either TemplateBody or TemplateURL but never UsePreviousTemplate.
When such an update involves changing the state of managed execution, e.g. fragment of file passed to --config changed from:
StackSet:
managedexecution:
active: false
to:
StackSet:
managedexecution:
active: true
or vice-versa, the following error occurs upon deployment:
InvalidOperationException: Cannot update ManagedExecution while updating StackSet Template or Parameters.