« Previous Next »

Thread: Does the msdeploy tool support the creation of AppPools?

Last post 08-29-2008 7:51 PM by SuperTramp. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 08-27-2008, 12:03 PM

    Does the msdeploy tool support the creation of AppPools?

    I have 9 web sites per web server and each runs in its own AppPool.
  • 08-27-2008, 1:24 PM In reply to

    Re: Does the msdeploy tool support the creation of AppPools?

    Yes.  If you sync the entire web server like this:

    msdeploy -verb:sync -source:webserver60 -dest:webserver60,computername=destComputer

    You will copy over all the configuration/content from the local machine to the destComputer.  This includes sites and application pool configuration. 

    (if you were dealing with IIS 7, just change webserver60 to webserver). 

  • 08-27-2008, 3:05 PM In reply to

    Re: Does the msdeploy tool support the creation of AppPools?

    If you wanted to move an individual site and it's app pool, you can use the manifest provider.

    Something like this:

    msdeploy -verb:sync -source:manifest=mymanifest.xml -dest:manifest=mymanifest.xml

    The manifest would look something like this:

    <mymanifest>

    <appPoolConfig path="MySite1_Pool" />

    <appHostConfig path="MySite1" />

    </mymanifest>

    For IIS6, you would use metakey and the path to them in the metabase, like metakey=lm/w3svc/1 and metakey=lm/w3svc/apppools/MySite1_Pool

    Thanks,

    -faith

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 08-28-2008, 6:13 PM In reply to

    Re: Does the msdeploy tool support the creation of AppPools?

    Good point Faith. 

    If you want you can just sync the application pools themselves by using appPoolConfig= (empty path)

  • 08-29-2008, 4:55 PM In reply to

    Re: Does the msdeploy tool support the creation of AppPools?

    OK, I have solved this problem in the following manner:

     

    I call the following batch file with %1=<AppPoolName>, %2=<the /lm/W3SVC website numeric value>

    batch file duplicate.bat:
    =======================================================================

    set msdeploy="C:\program files\Microsoft web deploy\msdeploy.exe"
    set master=http://web01-d:81/msdeploy

    %msdeploy% -verb:sync -source:metakey=/lm/W3SVC/AppPool/%1,metaDataGetInherited=true,computerName=%master% -dest:metakey=/lm/W3SVC/AppPools/%1

    %msdeploy% -verb:sync -source:metakey=/lm/W3SVC/%2,metaDataGetInherited=true,computerName=%master% -dest:metakey=/lm/W3SVC/%2

    I do this for each web site/AppPool combo.  You have to create the AppPool first, since the web site references it.

    Now my problem has changed slightly.  We have decided to use a networked Windows storage location for the actual web site files instead of local DAS storage.  This means that every site in the web site pool will reference a UNC path to the actual virtual directory.  This is good because now I will only need 1 copy of the web site's files for multiple web servers in the pool.

     

    However, I have noticed that the msdeploy command when used to sync a web site as I am doing above copies (or at least verifies consistency) of all the files in the web sites.  I really don't need to do this since all the web sites will be sharing the exact same copy of the files.  Is there a way (I would guess a manifest setting) to get the above-listed msdeploy web site sync command to not attempt to verify the file contents?

  • 08-29-2008, 7:51 PM In reply to

    Re: Does the msdeploy tool support the creation of AppPools?

    By default MSDeploy should ignore UNC content (i.e. virtual directories pointing to UNC paths). 

    You can force the issue by adding a -disableLink:ContentExtension. 

     This tells the tool to not include file/directory content in its sync.

Page 1 of 1 (6 items)
Microsoft Communities