Creating Virtual Directories on selected servers in Multiserver Environment

Topics: IIS and Web Services
Aug 14, 2014 at 3:33 PM
Hello Tom,

We have BizTalk multiserver set up with 3 Biztalk servers and we are able to deploy successfully without having any issues.its working great.

In btdf proj we have a virtaul directory.

and When we deploy by default its creating virtual directories in all 3 servers.Here we want to create virtual directorie on one server instead of all 3.How can we achieve this in btdf

can we call createvirtualdirectory task on particular servers?

Aug 15, 2014 at 5:44 AM
The easiest way is to make IncludeVirtualDirectories conditional on the computer name.
  <IncludeVirtualDirectories Condition="'$(Configuration)' == 'Server' and '$(ComputerName)' == 'SERVERA'">true</IncludeVirtualDirectories>
  <IncludeVirtualDirectories Condition="'$(Configuration)' == 'Server' and '$(ComputerName)' != 'SERVERA'">false</IncludeVirtualDirectories>
  <IncludeVirtualDirectories Condition="'$(Configuration)' != 'Server'">true</IncludeVirtualDirectories><!-- for Visual Studio deploy -->