
I am trying to push new build to my d365.
It keeps failing at step 16 , shared below is data from runbook.
<StepID>16</StepID><Message>The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to start service 'Microsoft Dynamics 365 Unified Operations: Batch Management Service (DynamicsAxBatch)'.</Message>
Any idea why its failing and what should be done to fix it.
Also note that even rollback fails with same error as above.
*This post is locked for comments
I have the same question (0)Pls ignore this I figured out the solution myself.
For anyone facing same issue, please note that this happens when your AOS manintenance mode automatically turns on.
To fix it , you need to first login to your AOS and at power shell enter the below command to turn the maintenance mode off and resume the build.
Doing that fill fix the update.
G:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir G:\AosService\PackagesLocalDirectory --bindir G:\AosService\PackagesLocalDirectory\Bin --sqlserver sql server name --sqldatabase sqldatabase name --sqluser sql username--sqlpwd sqlpasswd --setupmode maintenancemode --isinmaintenancemode false
that is the command i ran on the AOS server. ran it in PowerShell