« Previous Next »

Thread: Recycle App Pool Using MSDeploy

Last post 10-12-2009 8:12 PM by Samarjeet. 7 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (8 items)

Sort Posts:

  • 10-12-2009, 6:20 PM

    Recycle App Pool Using MSDeploy

    Is it possible to recycle an app pool on a remote machine using MSDeploy? If so, what is the syntax for such a command? We are using IIS 6, but syntax for IIS 7 would also be appreciated if there are differences between the two.
  • 10-12-2009, 6:51 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    Hi,

    Thanks for the post!!

     Here is the command

    using WMSVC 

    msdeploy.exe -verb:sync -source:recycleApp -dest:recycleApp="Default Web Site",wmsvc="ComputerName",recycleMode="StopAppPool",authType="basic",userName="userName",password="password" -allowUntrusted=true

     using Agent:

    msdeploy.exe -verb:sync -source:recycleApp -dest:recycleApp="Default Web Site",computerName="ComputerName",recycleMode="StopAppPool",authType="basic",userName="userName",password="password" -allowUntrusted=true

     Please post if you have any other questions!

     Thanks,

     

  • 10-12-2009, 7:20 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    Samarjeet: Thanks for the quick response. We are still using the MSDeploy beta version. Will the syntax you provided work with the beta or will we need to use the RTW version?
  • 10-12-2009, 7:26 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    I beleive MSDeploy team started supporting recycleApp provider in RTW release, so you need to use RTW version. The GUI in inetmgr also supports recycling of sites, applications and folders locally as well as remotely (but again the GUI will not work with IIS 6, its only for IIS 7.0 and above).

    Let me know if you face any issues.

    Thanks,

     

  • 10-12-2009, 7:32 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    Thanks Samarjeet. After I read your reply I received errors and discovered that the "recycleApp" provider is not supported for IIS 6. Is there a way to recycle an app pool in IIS 6 using MSDeploy?
  • 10-12-2009, 7:39 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    I believe you are using the first command which I provided. If you look its using wmsvc which does not exist on IIS 6.0. Can you please try the second command and make sure remote agent service is started?

    If you didnt use the first command or got errors with the second command, Can you please post the exact command you used?

    Thanks,

  • 10-12-2009, 7:57 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    Here is the command we are using (with placeholders where appropriate):

    msdeploy.exe -verb:sync -source:recycleApp -dest:recycleApp="MY_APP_POOL",computerName="http://{SERVER}:{PORT}",recycleMode="StopAppPool",authType="basic",userName="{userName}",password="{password}" -allowUntrusted=true

    I am also a little confused because the Web Deploy Online Help states that "The recycleApp provider is not supported on IIS 6.0 or earlier versions of IIS."

    Thanks.

  • 10-12-2009, 8:12 PM In reply to

    Re: Recycle App Pool Using MSDeploy

    Yep its not supported on IIS 6.0 or earlier versions. I guess MsDeploy team would support it in next version if they see enough demand for it.

Page 1 of 1 (8 items)
Microsoft Communities