« Previous Next »

Thread: Changing IP address of bindings during migration

Last post 02-15-2008 10:24 AM by ksingla. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 02-14-2008, 9:59 AM

    • alexthissen
    • Not Ranked
    • Joined on 02-12-2008, 2:33 PM
    • The Netherlands
    • Posts 5

    Changing IP address of bindings during migration

    Hi,

    Another issue we run into during migration is that the new IIS7 servers use a different cluster IP address in their server binding. So, during migration we would like to replace the old IP address 192.168.0.100 to the new one, say 192.168.0.110. I am pretty sure that a replace rule is what we need, but am not sure on the exact syntax of the -replace option. The documentation that I found was in Chapter 3 of the MS Deploy Walkthroughs

    • Is the match pattern specified as a regular expression?
    • Can you perform a global replace if multiple matches are made?
    • How to specify the ServerBindings attribute for the IIS6 configuration of a particular Web Site in the metabase?

    Again, any help would be appreciated. Thanks in advance.

    Alex

  • 02-14-2008, 12:01 PM In reply to

    • alexthissen
    • Not Ranked
    • Joined on 02-12-2008, 2:33 PM
    • The Netherlands
    • Posts 5

    Re: Changing IP address of bindings during migration

    I managed to figure out a little more on how things work . Here's what I came up with:

    msdeploy -verb:migrate -dest:webServer60 -source:webServer60,targetName=http://192.168.0.100/MSDEPLOY
    -replace:objectName=metaProperty,attributeName=value,match=192.168.0.110:80,replace=192.168.0.120:80

    This does a replace of all occurences of IP address 192.168.0.110:80 to 192.168.0.120:80 within MetaProperty values. 'ServerBindings' is one of the meta properties and will be affected. The replacement is global and case-insensitive as far as I can tell.

    Regular expressions are used to match the object name, attribute name and match pattern.

    Is there a way to narrow down the matched objects based on their name in the case of meta properties?

  • 02-15-2008, 10:24 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: Changing IP address of bindings during migration

    Hi Alex,

    There is no way to do a match on one attribute and then replace value of another attribute. So you can't replace IP addresses which are values of ServerBindings metaProperty only. I will discuss in the product group and see what we can do to enable this scenario.

    Thanks for reporting this limitation.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (3 items)
Microsoft Communities