iis-docs
iis-docs copied to clipboard
Web Deploy PowerShell Cmdlets - Restore command for App is incorrect
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