BZ-1070097 - History commands require deploymentId to be set
(cherry picked from commit 63fdf92c7dbb5cd486768533fcd79a790878e291)