Execute Custom Target after BounceBizTalk

Topics: Server Deployment
May 9, 2012 at 5:49 PM

When performing server deployments of our BizTalk applications we want to be able to disable our monitoring tool at the start of a deployment and enable monitoring when the deployment is complete.  When doing the undeploy we customized CustomPreInitialize to disable monitoring.  Pretty straight forward.  The problem is there doesn't appear to be a customizable target at the very end of the deployment (after BounceBizTalk).  As a result, we get notifications for each of the host instances that get restarted at the end of the deployment.  Do you have any suggestions or can a custom target be added to the end of the process?

 

Thanks.

 

    <UndeployDependsOn>

      CustomPreInitialize;

      FrameworkInitialize;

      CustomPostInitialize;

      CustomUndeployTarget;

      PrepareAppForUndeploy;

      UndeployBam;

      UndeployBtsNtSvcExeConfig;

      UndeployEsbItineraries;

      UndeploySchemas;

      UndeployOrchestrations;

      UndeployTransforms;

      UndeployPipelines;

      UndeployPipelineComponents;

      UndeployComponents;

      UndeployExternalAssemblies;

      UndeploySharedAssemblies;

      UndeployVDirs;

      UndeployVocabAndRules;

      UndeployCustomFunctoids;

      UndeploySSO;

      UndeployAppDefinition;

      UndeployFileAdapterPhysicalPaths;

      CustomPostUndeployTarget;

      BounceBizTalk

    </UndeployDependsOn>

 

 

    <DeployDependsOn>

      CustomPreInitialize;

      FrameworkInitialize;

      CustomPostInitialize;

      PreprocessBindings;

      PreprocessFiles;

      PreprocessAndConfigureLog4net;

      DeployFileAdapterPhysicalPaths;

      CustomDeployTarget;

      DeployAppDefinition;

      DeploySchemas;

      DeploySharedAssemblies;

      DeployExternalAssemblies;

      DeployComponents;

      DeployPipelineComponents;

      DeployPipelines;

      DeployTransforms;

      DeployOrchestrations;

      ImportBindings;

      DeployVDirs;

      DeployVocabAndRules;

      DeployCustomFunctoids;

      DeploySSO;

      DeployEsbItineraries;

      DeployBtsNtSvcExeConfig;

      DeployBam;

      StartApplication;

      CustomPostDeployTarget;

      BounceBizTalk

    </DeployDependsOn>

Coordinator
May 10, 2012 at 6:10 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
May 10, 2012 at 6:11 PM

I can probably throw in a custom target at the very end for the final 5.0 release.

Thanks,
Tom

Coordinator
May 15, 2012 at 3:45 AM
Edited May 16, 2012 at 5:10 AM

I just remembered something.  If you're using BizTalk 2010 (MSBuild 4.0), then you can add a target to your .btdfproj file that can execute before or after any BTDF target.  Just put AfterTargets="" or BeforeTargets="" on your Target and name the target that you want to run before or after.

Thanks,
Tom

May 16, 2012 at 5:54 PM

We are using BizTalk 2010, so I'll give this a try and report back with the results.  Thank you very much.