It is also possible to generate a command file that creates your Application Center application, adds the appropriate resources, and finally deploys the application to your target servers. The command file described in Listing 23.2 adds all of each type of the BizTalk resource to an application and deploys it to a target server.
AC APPLICATION /CREATE /NAME:Test_App AC APPLICATION /ADDRESOURCE /NAME:Test_App /RESOURCETYPE:BizTalk /RESOURCEPATH:BizTalkPorts AC APPLICATION /ADDRESOURCE /NAME:Test_App /RESOURCETYPE:BizTalk /RESOURCEPATH :BizTalkReceiveFunctions AC APPLICATION /ADDRESOURCE /NAME:Test_App /RESOURCETYPE:BizTalk /RESOURCEPATH :BizTalkCustomCounters Custom_Counter AC APPLICATION /ADDRESOURCE /NAME:Test_App /RESOURCETYPE:IIS /RESOURCEPATH:/LM/w3svc/1 /Root/BizTalk_Virtual_Directory AC DEPLOY /START /TARGETS:TargetServerName /TARGETUSER:Domain/UserName /TargetPassword :Password /AppName:Test_App /Wait |
Note
Using /Wait, for AC DEPLOY /START, is optional; however, if it is used, the deployment will be done synchronously, and control will not be returned until synchronization completes. Also you can include the Password in your command file or enter *, and you will be prompted for the password.
Test_App.cmd is available for download from the publisher's Web site.
To add a specific BizTalk resource, you use the same syntax that you do to add all of that particular resource and add Resource_name. If any spaces are in the name of the resource, put quotation marks around the /RESOURCEPATH parameter.
AC APPLICATION /ADDRESOURCE /NAME:Test_App /RESOURCETYPE:BizTalk "/RESOURCEPATH :BizTalkPortsPort with spaces"