iis-docs icon indicating copy to clipboard operation
iis-docs copied to clipboard

Web Deploy PowerShell Cmdlets - Restore command for App is incorrect

Open terrimorton opened this issue 7 years ago • 0 comments

https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/web-deploy-powershell-cmdlets

from feedback at https://forums.iis.net/t/1226438.aspx?Errata+Web+Deploy+PowerShell+Cmdlets:

The example given to restore a web application does not work as specified: Restore-WDApp C:\myappbackup.zip -ApplicationPathParam1 "Default web site\app1"

The correct way to do this is: $parameters = @{ "Application Path Param1" = "Default web site\app1" } Restore-WDApp C:\myappbackup.zip -Parameters $parameters

terrimorton avatar Mar 11 '18 18:03 terrimorton