Changing Default Application Pool in WebDeploy RRS feed

  • Question

  • User1865095734 posted


        How can we change the trarget application pool/ default application pool with the web deploy. i build the web site with web deploy but now while executing the webdeploy cmd file, i need to change the traget application pool also. Is there any options to set the parameters for changing the trarget application pool in asp.net website or in build web deploy.


    Wednesday, July 6, 2011 2:26 AM


All replies

  • User-837620913 posted

    In your command-line arguments to webdeploy.exe, add the following:

    -setParam:"Application Pool"="MyCustomAppPool"

    Wednesday, July 6, 2011 5:54 AM
  • User1865095734 posted


          Thanks for the replay.

    Is there any way we can set this parameter from the tfs 2010 build. so while makeing the package it will add in the ms deploy cmd file automatically.

    Thanks in advance


    Wednesday, July 6, 2011 6:52 AM
  • User470413944 posted


    As far as I know, TFS build settings supports MSBuild command line only.

    You can try to modify project file to add more build task.

    For more details:




    I hope this can be helpful for you.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 13, 2011 9:05 AM
  • User-1313882852 posted

    Hi DarrellNorton...

    Can I do same thing while using webdeploy API?? (deployment vai programmatically by using DeploymentObject and DeploymentManager )

    Tuesday, August 13, 2013 6:32 AM