This project has moved and is read-only. For the latest updates, please go here.

Dealing with disabled services

Topics: Server Deployment
Aug 28, 2014 at 4:28 PM

We have DR servers that are part of the BizTalk Group, the host instances are enabled in BizTalk but disabled at the OS level. When deploying using BTDF the restart on the last server fails as it can't deal with that.

Anyway we can tweak it to ignore services that are disabled?
Aug 29, 2014 at 4:39 AM
What does BizTalk Admin do when you attempt to control those disabled services? The Deployment Framework uses the BizTalk WMI interface to control the host instances.

Aug 29, 2014 at 2:09 PM
It fails with "The service cannot be started, either because it is disabled or because it has no enabled devices associated with it". The BTDF sees that as a critical error and doesn't continue even though the app is installed and started, perhaps that could be a warning not an error?

I'd rather it ignore services that are in a Stopped state. Either stopped because the OS has them disabled or because we want them stopped. Might be a nice property to add to the deployment <RestartStoppedHostInstances>.
Aug 29, 2014 at 3:04 PM
Edited Aug 29, 2014 at 3:04 PM
                    //Check if ServiceState is  'Stopped' and ignoreStopped flag
                    if ((_mode == ModeType.Restart && _ignoreStopped 
                        && currentServiceState == ServiceStateType.Stopped )
                        this.Log.LogMessage("Skipping host instance due to ignore stopped flag: " + hostName + " on " + runningServer);
Sep 2, 2014 at 6:48 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.