VIDEO – PowerShell automated WebDeploy ZIP install
This video will demonstrate how to test, build, publish, and install WebDeploy ZIP packages. The example walks through a simple WebAPI HTTP endpoint which echoes back the current date and time. Fiddler is leveraged for HTTP testing. Once tested succesful, we publish the project to ZIP for install on IIS hosted infrastructure.
PowerShell cmdlet Restore-WDPackage is used to extract ZIP content and create a permanent home for the API endpoint.
By automating with PowerShell we provide a fast consistent admin experience to ensure the API is always installed the same way for a reliable repeatable procedure. Thanks for watching.
Cheers!

Video
Code
Add-PSSnapin WDeploySnapin3.0 $package = "C:\temp\Hello\deploy\Hello.zip" Restore-WDPackage $package -Parameters @{"IIS Web Application Name"="API/Hello"}
Screenshot
