SkipHostInstancesRestart on Server Deploy

Topics: Server Deployment
Feb 17, 2015 at 11:50 AM
Hi Tom,

I'm running BTDF v6 and have the following within my .btdfproj

<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">x86</Platform>

<BizTalkHosts Include="SendHost" />
<BizTalkHosts Include="ReceiveHost" />
<BizTalkHosts Include="OrchestrationHost" />
<BizTalkHosts Include="Host32bit" />

As you can see, I have SkipHostInstancesRestart set to False, however, here's an extract from my deploy results file:

SkipBamUndeploy = true
SkipHostInstancesRestart = True
SkipIISReset = True

Task "CallTarget"
        Task Parameter:Targets=BounceAllBizTalkHosts
        Target "BounceAllBizTalkHosts" skipped, due to false condition; ('@(BizTalkHosts)' == '' and '$(SkipHostInstancesRestart)' != 'true') was evaluated as ('SendHost;ReceiveHost;OrchestrationHost;Host32bit' == '' and 'True' != 'true').
Other than the host instances not being restarted, the server deployment works great. Any ideas where I'm going wrong?

Feb 18, 2015 at 4:35 AM
Hi Rob,

SkipHostInstancesRestart is False by default when not present in the .btdfproj. There is no other reference to it except in the Condition that you referenced. I have to think you're passing it in via MSBuild command-line (/p) or environment variable (SetEnvUI/InstallWizard.xml). Is this a scripted deployment?

Marked as answer by BizTalkers on 2/19/2015 at 6:52 AM
Feb 19, 2015 at 1:52 PM
Correct :)

I am running this from a PowerShell script I created a couple of years ago. Seems I'd disabled the auto restart previously - I can only assume because I needed other scripts to complete before a restart.

Thanks again for your help,

Feb 19, 2015 at 6:20 PM
No problem Rob, happy to help.