Advanced IIS Migration Features

Adding Parameters to Web Deploy

You can add extra parameters to Web Deploy if required. You can add parameters to the extraction process or the creation process.

You add parameters by modifying the migration.config file, which is located in the container\scripts folder. The file is copied to the container/scripts folder when you execute virtamigrate /C <ContainerName>. Note that the migration.config file is not created in an empty container; you must execute virtamigrate /C after you create a container before you look for the migration.config file.

Changes that you make to the migration.config file will be implemented when you execute virtamigrate /A.

To Add Parameters to the Package Extraction

  1. Open the migration.config file in the container\scripts folder.

  2. Add the following attribute to the webDeploy node:

    extractExtraParams="my new extra parameters"
  3. Save the file.

To Add Parameters to the Creation Process

  1. Open the migration.config file in the container\scripts folder.

  2. Add the following attribute to the webDeploy node:

    createPackageExtraParams="my new extra parameters"
  3. Save the file.

Removing a Migration Module

You can remove a migration that you don't want to run from the migrate.config file. To do this, remove a node from the migrate.config file.

Example:

<migrationManager debugLogs="" >     <defaultMigrationsToRun>       <add name="Feature" />       <add name="IIS_Test" />       <add name="Rewrite_Module" />       <add name="IIS" />       <add name="ASP.NET" />       <add name="Account" />       <add name="PHP" />       <add name="Binding" />     </defaultMigrationsToRun> </migrationManager>

To remove the "Binding" migration, remove the line: