Web Deployment Tool for Drupal sites
Alessandro Pilotti@alexpilotti
MVP ASP.NET / IIS
MCSD, MCAD, MCSE, MCDBA, MCTRed Hat Certified Engineer
Web DeployWeb Deploy (Web Deployment Tool) simplifies:
Migration, management, deployment of IIS Web servers, Web applications and Web sites
Command line tool (msdeploy)
IIS Manager module
WebDeployFeatures
Web Application PackagingApplication or site, including DBsACLs, COM, GAC and registry settingsSources and destinations can be
Live servers Zip files
DeploymentAdministrative rights not requiredIntegration with WMSVC for remote deployment
IIS server synchronizationEntire server / site / applicationDifferentialDetects missing dependencies
InstallationWeb Deployment Tool
IIS Manager UI Module Remote Agent Service IIS 7.x Deployment Handler
Service msdepsvc Net start msdepsvc sc config msdepsvc start=auto
Default URL http://+/MSDEPLOYAGENTSERVICE/
For a custom URL, use the following setup options: msiexec /i <msi_filename> /passive ADDLOCAL=ALL
LISTENURL=http://+:8080/MSDEPLOY2/
ProvidersProviders process specific source or destination
data.
Examples:appHostConfigappHostSchemaappPoolConfigcontentPathcreateAppdbMySQL
• dbFullSql• dirPath• iisApp• package• webApp• webServer
OperationsOperations are actions executed by WebDeploy
on given providersdumpsyncdeleteGetDependenciesGetSystemInfo
Remote Access – 3 options Administrators can use
Web Deployment Agent Service (msdepsvc) Msdeploy syntax: computername=serverName URL: http://serverName/MSDEPLOYAGENTSERVICE
Non administrators, to which site or application management has been delegated, can use Web Management Service (wmsvc) Msdeploy syntax: wmsvc=serverName, username=xxx,password=xxx URL: https://serverName:8172/msdeploy.axd
WebDeploy “on demand” avoids the need of installing msdepsvc on the target computer, e.g.: msdeploy -verb:sync -source:webserver -
dest:auto,computername=destinationComputer1,username=administrator,password=<password>,tempAgent=true
Deploys binaries on the target computer using WMI Ensure that winmgmt is started and its firewall exception is enabled
WMSVC – Install IIS Deployment handler!
ScenarioExport / Import packages via IIS Manager
Export / Import packages via CLI
Synchronize web serversWFF uses Web Deploy!
Migrate from IIS 6.0 to IIS 7.x
Database migration / synchronization
IIS 7 <-> IIS 7Push
msdeploy -verb:sync -source:apphostconfig="Default Web Site" -dest:apphostconfig="Default Web Site",computername=Server1
Pullmsdeploy -verb:sync -
source:apphostconfig="Default Web Site",computername=Server1 -dest:apphostconfig="Default Web Site"
IIS 6 <-> IIS 7Source (IIS 6)
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip
Destination (IIS 7.x) msdeploy -verb:sync -source:package=c:\Site1.zip -
dest:metakey=lm/w3svc/1
Using the web deployment agent: Push (run on the source server)
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:metakey=lm/w3svc/1,computername=Server1
Pull (run on the destination server)msdeploy -verb:sync
-source:metakey=lm/w3svc/1,computername=Server1 -dest:metakey=lm/w3svc/1