« Previous Next »

Thread: MSDeploy Migration Question - Syntax

Last post 07-06-2009 5:54 PM by moshaikh. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-06-2009, 5:39 PM

    MSDeploy Migration Question - Syntax

    Today I used the msdeploy tool to migrate from IIS6 to IIS7.  I wanted to migrate all the IIS6 settings, minus the content.  Here was my command.

    msdeploy -verb:sync -source:webServer60 -dest:archivedir=c:\dir,encryptPassword=pass -disableLink:contentExtension

    msdeploy -verb:migrate source:archivedir=c:\dir,encryptPassword=pass -dest:webServer60

    I noticed that on the IIS7 box the anonymous authencation was trying to authenticate using the account from the IIS6 server.  I noticed the site binding were using the IP address of the IIS6 server.  How can I migrate the sites without effecting these settings? 

  • 07-06-2009, 5:54 PM In reply to

    Re: MSDeploy Migration Question - Syntax

    You can replace the bindings of the sites as you carry out the migration using replace as follows:

    msdeploy -verb:migrate source:archivedir=C:\dir,encryptPassword=pass -dest:webserver60 -replace:objectName=metaProperty,scopeAttributeName=name,scopeAttributeValue="ServerBindings",match=sourceIP,replace=newdestinationIP

    where match is a regular expression string to match the binding values in the source. You can read more about replace here

    Let us know if you need more info.

Page 1 of 1 (2 items)
Microsoft Communities