Walkthrough Using BizTalk Deployment Framework (BTDF) – 2 (Using Environment Specific Binding Files)
This is in continuation to my previous post on Walkthrough Using BizTalk Deployment Framework (BTDF) 1
In this post, I am going to show how to use different binding files specific to different Environments.
1. I am going to use the same BizTalk Example I created in step 2 of previous post.
2. Open the SettingsFileGenerator.xml (come when you add BTDF project to BizTalk) using Microsoft Excel.
3. Add all the important Configuration values like Port Names, Port Locations, Host Names in the Excel sheet. Add the name in Column A and the Corresponding values for different environments in Columns B, C, D, E, F
4. Completed excel sheet will be like below.
5. Now open PortBindingsMaster.xml file which will hold the Binding File.
6. For the settings defined in Step4, replace the corresponding hardcode values with placeholders.
Example: I will replace Please note, you should here use “{“ not “(”
7. My updated PortBindingsMaster.xml will be like below.
8. Update the Property group in Deployment.btdfproj file to include the below properties.
9. Generate the MSI file using Tools -> Deployment Framework for BizTalk -> Build Server Deploy MSI
10. Start installing the MSI file as usual. At last check the checkbox and click Finish.
11. This will start the deployment process in BizTalk.
12. In step 2, select the Corresponding Environment File to which you want to deploy.
13. This will replace the entire place holders in your PortBindingsMaster.xml with the corresponding Environment values that you specified in SettingsFileGenerator.xml (step 3 above).
14. Complete the deployment Process. (Note: You can edit the SettingsFileGenerator.xml any time before deploying the Application to BizTalk. Not necessary to edit before generating MSI file. )
Hope this helps
Walkthrough Using BizTalk Deployment Framework (BTDF) – 2 (Using Environment Specific Binding Files)