Share via


Web Deploy getParameters Operation

Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

getParameters

The getParameters operation displays package or archive parameters.

Example

msdeploy -verb:getparameters -source:archiveDir=C:\WebArchive

getParameters displays the parameters that have been declared for a package or archive. The information is returned in XML format and shows the contents of the Parameters.xml file. You can define the parameters in the Parameters.xml file by using the -declareParam parameter when you create the package. When you use a parameterized package as a source in a sync operation, you can set the values for the declared parameters by using the -setParam parameter. getParameters can only be used when the source is a package or archive.

For more information about packages, see Web Deploy package Provider. For more information about the -declareParam and -setParam parameters, see Web Deploy Operation Settings.

Example Usages

Display the parameters in the Mediawiki.zip package file.

msdeploy -verb:getparameters -source:package=mediawiki.zip

Sample output

<parameters>

   <parameter name="Application Path" description="Full path of where you would like to install your application (for example, Default Web Site/mediawiki)" defaultValue="Default Web Site/mediawiki" tags="iisapp">

      <parameterEntry type="ProviderPath" scope="iisapp" match="mediawiki-1.14.0" />

   </parameter>

   <parameter name="SetAcl1" description="Automatically sets write access for the application" defaultValue="{Application Path}/config" tags="Hidden">

      <parameterEntry type="ProviderPath" scope="setAcl" match="mediawiki-1.14.0/config" />

   </parameter>

</parameters>

See Also

Web Deploy Operations

Web Deploy Operation Settings

Web Deploy package Provider

Web Deploy sync Operation