2. AGENDA
Introduction
Installation
Setting
Export package through IIS Manager
Import Package through IIS Manager
Automatic Backups
Use Visual Studio to publish with Web Deploy
Use MsBuild to publish with Web Deploy
Use Visual Studio to generate Web Deploy package
Use MsBuild to generate Web Deploy package
Reference
Q & A 2
4. INTRODUCTION
An extensible client-server tool for syncing content
and configuration to IIS
Simplifies deployment of Web applications and Web
sites to IIS servers
4
5. FEATURE
Seamless integration with IIS Manager (IIS7 and above),
Visual Studio (2010 and above)for creating packages
and deploying them onto a machine, both locally and
remotely.
Integration with WebMatrix for deploying and
downloading web applications.
Seamless integration with the Web Platform Installer to
install community web applications simply and easily.
Web application packaging:
Ability to package a Web application or an entire site,
including the associated databases.
Ability to package ACLs, COM, GAC and registry settings.
Supports both live servers and zipped packages as a source
or destination. 5
6. FEATURE
Web application deployment:
Administrative privileges are not required in order to deploy Web
applications.
Ability to add powerful parameters to change text in files when they are
deployed (such as prompting to replace a connection string when
deploying from QA to staging environments).
Integration with the IIS Web Management Service (WMSVC) for remote
deployment by non-administrators.
Server administrators have granular control over the operations that can
be performed and can delegate tasks to non-administrators.
Web server migration and synchronization:
Ability to synchronize or migrate the entire Web server, a Web site or
application.
Synchronizes only the data that has changed.
Ability to detect missing dependencies during synchronization.
Automatically gathers content, IIS configuration, SSL certificates and
ASP.NET configuration when you sync a Web site.
6
7. FEATURE
Automatic backup of Web Sites before making any
changes.
Administrator can configure Web Deploy such that it
creates and store backup of websites on the server.
End users can directly restore their websites without
admins involvement.
In addition to the IIS Manager, Visual Studio 10,
Web Matrix tasks can be performed using the
command-line, PowerShell Cmdlets or public APIs.
7
11. PROVIDERS
Web Deploy appHostConfig Provider
Web Deploy appHostSchema Provider
Web Deploy appPoolConfig Provider
Web Deploy appPoolEnable32Bit Provider
Web Deploy appPoolNetFx Provider
Web Deploy appPoolPipeline Provider
Web Deploy archiveDir Provider
Web Deploy auto Provider
Web Deploy cert Provider
11
12. PROVIDERS
Web Deploy comObject32 Provider
Web Deploy comObject64 Provider
Web Deploy contentPath Provider
Web Deploy createApp Provider
Web Deploy dbFullSql Provider
Web Deploy dbMySql Provider
Web Deploy dbSqlite Provider
Web Deploy dirPath Provider
Web Deploy fcgiExtConfig Provider
Web Deploy filePath Provider
Web Deploy gacAssembly Provider
Web Deploy gacInstall Provider 12
13. PROVIDERS
Web Deploy iisApp Provider
Web Deploy machineConfig32 Provider
Web Deploy machineConfig64 Provider
Web Deploy manifest Provider
Web Deploy metaKey Provider
Web Deploy package Provider
Web Deploy recycleApp Provider
Web Deploy regKey Provider
Web Deploy regValue Provider
Web Deploy rootWebConfig32 Provider
Web Deploy rootWebConfig64 Provider
Web Deploy runCommand Provider 13
14. PROVIDERS
Web Deploy setAcl Provider
Web Deploy urlScanConfig Provider
Web Deploy webApp Provider
Web Deploy webServer Provider
Web Deploy webServer60 Provider
14
15. OPERATIONS
dump
Returns information about a specified source object
sync
Synchronizes data between a source and a destination
delete
Deletes the objects specified by the destination
argument
GetDependencies
Returns dependencies on features that Web Deploy
cannot synchronize and that you may want to install
separately on the destination
15
67. USE MSBUILD TO PUBLISH WITH WEB
DEPLOY
msbuild <ProjectFile|SolutionFile>
/p:Configuration=<Configuration>;Platform="<Platform>";Depl
oyOnBuild=true;PublishProfile=<PublishProfile>;UserName=<
UserName>;Password=<Password>;AllowUntrustedCertificat
e=True
67
68. USE MSBUILD TO PUBLISH WITH WEB
DEPLOY
msbuild <ProjectFile|SolutionFile>
/p:Configuration=<Configuration>;Platform="<Platform>";Depl
oyOnBuild=true;PublishProfile=<PublishProfile>;UserName=<
UserName>;Password=<Password>;AllowUntrustedCertificat
e=True; EnableMSDeployAppOffline=true
68
79. USE MSBUILD TO GENERATE WEB DEPLOY
PACKAGE
msbuild <ProjectFile|SolutionFile>
/p:Configuration=<Configuration>;Platform="<Platfo
rm>";PackageLocation="<PackageLocation>"
/t:package
79
81. REFERENCE
Web Deploy 3.5 : The Official Microsoft IIS Site
https://www.iis.net/downloads/microsoft/web-deploy
The Will Will Web | 介紹好用工具:Web
Deployment Tool 1.0 ( 附心得筆記 )
http://blog.miniasp.com/post/2009/11/23/Useful-tool-
Web-Deployment-Tool.aspx
天空的垃圾場: ASP.NET MVC - 使用Web Deploy佈
署MVC應用程式到IIS
http://blog.sanc.idv.tw/2014/08/aspnet-web-
deploymvciis.html
81
82. REFERENCE
CI Server 22 - 使用Web Deployment Tool部署網站 -
iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天
http://ithelp.ithome.com.tw/articles/10108511
Using Web Deploy : The Official Microsoft IIS Site
https://www.iis.net/learn/publish/using-web-deploy
Web Deployment Tool
https://technet.microsoft.com/en-
us/library/dd568996(v=ws.10).aspx
82
83. REFERENCE
ScottGu's Blog - Automating Deployment with
Microsoft Web Deploy
https://weblogs.asp.net/scottgu/automating-deployment-
with-microsoft-web-deploy
Web Deploy - Import Package | Level Up
https://larrynung.github.io/2015/07/10/web-deploy-
import-package/
Web Deploy - Export package | Level Up
https://larrynung.github.io/2015/07/08/web-deploy-
export-package/ 83
84. REFERENCE
Web Deploy - Synchronize IIS | Level Up
http://larrynung.github.io/2015/07/10/web-deploy-
synchronize-iis/
Web Deploy - Automatic Backups | Level Up
http://larrynung.github.io/2015/03/07/web-deploy-
automatic-backups/
84