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

<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">x86</Platform>
<SchemaVersion>1.0</SchemaVersion>
<ProjectName>BTS.GO.Store6</ProjectName>
<ProjectVersion>1.0</ProjectVersion>
<IncludeComponents>True</IncludeComponents>
<IncludePipelines>True</IncludePipelines>
<IncludeSchemas>True</IncludeSchemas>
<IncludeOrchestrations>True</IncludeOrchestrations>
<IncludeTransforms>True</IncludeTransforms>
<IncludeSSO>True</IncludeSSO>
<UsingMasterBindings>True</UsingMasterBindings>
<RequireXmlPreprocessDirectives>False</RequireXmlPreprocessDirectives>
<ApplyXmlEscape>True</ApplyXmlEscape>
<SkipIISReset>True</SkipIISReset>
<IncludeBam>True</IncludeBam>
<IncludeVirtualDirectories>True</IncludeVirtualDirectories>
<SkipHostInstancesRestart>False</SkipHostInstancesRestart>
</PropertyGroup>

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

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?

Thanks,
Rob.
Coordinator
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?

Thanks,
Tom
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,

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

Thanks,
Tom