SlideShare una empresa de Scribd logo
1 de 60
WEB DEPLOY COMMAND LINE
Larry Nung
AGENDA
Web Deploy Command Line
Reference
Q & A
2
WEB DEPLOY COMMAND LINE
3
PATH
 C:Program FilesIISMicrosoft Web Deploy V3
4
SYNTAX
 msdeploy.exe
-verb:<verbName>
-source:<provider>[=<pathToProviderObject>
[,<providerSetting>=<providerSettingValue>]]
[-dest:<provider>[=<pathToProviderObject>
[,<providerSetting>=<providerSettingValue>]]
]
[-<MSDeployOperationSetting> ...]
5
ARGUMENTS
 -verb:<verbName>
 Specifies a Web Deploy verb. A verb determines the
action to be taken on a source or destination object.
 <verbName> must be one of the
following: delete, dump, getDependencies, getSyste
mInfo, or sync.
 The sync verb requires both the -source and -
dest arguments.
 The delete verb requires only the -dest argument.
6
ARGUMENTS
 -source:<provider>
 Specifies the source of the data for the verb argument.
 source is a required argument for
the sync and dump operations, but not delete.
 -dest: <provider>
 Specifies the destination of a synchronization operation.
 The destination argument is required only if
the sync or delete verb is specified.
7
ARGUMENTS
 -[-<MSDeployOperationSetting> ... ]
 Operation settings affect the execution of an entire Web
Deploy operation.
8
PROVIDER SETTINGS
 authType
 computerName
 encryptPassword
 getCredentials
 ignoreErrors
 includeAcls
 password
 storeCredentials
 tempAgent
 userName
 wmsvc 9
OPERATION SETTINGS
 allowUntrusted
 appHostConfigDir
 declareParam
 declareParamFile
 dest
 disableLink
 disableRule
 disableSkipDirective
 enableLink
 enableRule 10
OPERATION SETTINGS
 enableSkipDirective
 postSync
 preSync
 removeParam
 replace
 retryAttempts
 retryInterval
 setParam
 setParamFile
 showSecure
 skip 11
OPERATION SETTINGS
 source
 unicode
 useCheckSum
 verb
 verbose
 webServerDir
 whatif
 xml
 xpath
12
DUMP
 Dump local server
 msdeploy -verb:dump -source:webServer
13
DUMP
 Dump remote server
 msdeploy -verb:dump -
source:webServer,computerName=<DestServer>
14
DUMP
 Dump local site
 msdeploy -verb:dump -
source:appHostConfig="<SourceSite>"
15
DUMP
 Dump remote site
 msdeploy -verb:dump -
source:appHostConfig="<SourceSite>",computerName=
<SourceServer>
16
DUMP
17
 Dump local available backups
 msdeploy.exe -verb:dump -
source:backupManager=<SourceSite>
DUMP
18
 Dump remote available backups
 msdeploy.exe -verb:dump -
source:backupManager=<SourceSite>,computerName=
<DestServer>
SYNC
 Sync local server to remote server
 msdeploy -verb:sync -source:webServer -
dest:webServer,computerName=<DestServer>
 Sync remote server to local server
 msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer
 Sync remote server to remote server
 msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer,computerName=<DestServer>
19
SYNC
 Sync remote app pool to remote app pool
 msdeploy –verb:sync –
source:appPoolConfig="<SourceSite>",computerName=
<SourceServer> -
dest :appPoolConfig="<DestSite>",computerName=<De
stServer>
 Sync remote site to remote site
 msdeploy –verb:sync –
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> –
dest :appHostConfig="<DestSite>",computerName=<De
stServer>
20
SYNC
 Sync local package to local site
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<DestSite>"
21
SYNC
 Sync local package to remote site
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<SourceSite>",computerName=<
SourceServer>
22
SYNC
 Sync local site to local package
 msdeploy -verb:sync -
source:appHostConfig="<SourceSite>" -dest:
package=<Package>
23
SYNC
 Sync remote site to local package
 msdeploy -verb:sync -
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> -dest: package=<Package>
24
SYNC
25
 Backup local site
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>
SYNC
26
 Backup remote site
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>,computerName=<Des
tServer>
SYNC
27
 Restore local site to specified backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>/<BackupFile>
SYNC
28
 Restore remote site to specified backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>/<BackupFile>,
computerName=<DestServer>
SYNC
29
 Restore local site to last backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<siteName>,useLatest=true
SYNC
30
 Restore remote site to last backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<siteName>,useLatest=true,
computerName=<DestServer>
SYNC
31
 Recycle local application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>"
SYNC
32
 Recycle remote application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>" ,
computerName=<DestServer>
SYNC
33
 Stop local application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StopAppPool"
SYNC
34
 Stop remote app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StopAppPool" , computerName=<DestServer>
SYNC
35
 Start local app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StartAppPool"
SYNC
36
 Start remote app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StartAppPool" , computerName=<DestServer>
SYNC
37
 Stop remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/stop",computerName=<DestServer>
SYNC
38
 Start remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/start",computerName=<DestServer>
SYNC
39
 Restart remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/restart",waitinterval=15000,computerName=<DestServ
er>
SYNC
40
 Sop site => Sync local package to remote site => Start site
 msdeploy -verb:sync -
presync:runCommand="%windir%system32inetsrvappc
md.exe stop apppool
<DestSite>",successReturnCodes=0,waitinterval=15000,c
omputerName=<DestServer> -
source:package=<Package> -
dest:appHostConfig="<DestSite>",computerName=<DestS
erver> -
postsync:runCommand="%windir%system32inetsrvappc
md.exe start apppool
<DestSite>",successReturnCodes=0,waitinterval=15000,c
omputerName=<DestServer>
SYNC
41
SYNC
 Sync local package to remote site and exclude specified file
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<DestSite>",computerName=<DestS
erver> -
skip:objectname='filePath',absolutepath='<FilePath>'
42
DELETE
 Delete local site
 msdeploy –verb:delete –
dest:apphostconfig="<DestSite>" –
skip:objectname=machineconfig –
skip:objectname=rootwebconfig
43
DELETE
 Delete remote site
 msdeploy –verb:delete –
dest:apphostconfig="<DestSite>",computerName=<Des
tServer> –skip:objectname=machineconfig –
skip:objectname=rootwebconfig
44
DELETE
 Delete local app pool
 msdeploy –verb:delete –dest: appPoolConfig
="<DestAppPool>"
45
DELETE
 Delete remote app pool
 msdeploy –verb:delete –dest: appPoolConfig
="<DestAppPool>",computerName=<DestServer>
46
DELETE
 Delete local site content
 msdeploy -verb:delete -
dest:contentPath=<ContentPath>
47
DELETE
 Delete remote site content
 msdeploy -verb:delete -
dest:contentPath=<ContentPath> ,computerName=<De
stServer>
48
DELETE
 Delete local file
 msdeploy -verb:delete -dest:filePath="<FilePath>"
49
DELETE
 Delete remote file
 msdeploy -verb:delete -
dest:filePath="<FilePath>",computerName=<DestServer
>
50
DELETE
 Delete local application
 msdeploy -verb:delete -dest:iisapp="<AppPath>"
51
DELETE
 Delete remote application
 msdeploy -verb:delete -
dest:iisapp="<AppPath>",computerName=<DestServer>
52
GETDEPENDENCIES
 Get local server dependencies
 msdeploy -verb:getDependencies -source:webServer
53
GETDEPENDENCIES
 Get remote server dependencies
 msdeploy -verb:getDependencies -
source:webServer>",computerName=<SourceServer>
54
GETSYSTEMINFO
 Get local server system info
 msdeploy -verb:getSystemInfo -source:webServer
55
GETSYSTEMINFO
 Get remote server system info
 msdeploy -verb:getSystemInfo -source:webServer
>",computerName=<SourceServer>
56
REFERENCE
57
REFERENCE
 Web Deploy Command Line Reference
 https://technet.microsoft.com/en-
us/library/dd568991(v=ws.10).aspx
58
Q&A
59
QUESTION & ANSWER
60

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Scrum Roles and artifacts
Scrum Roles and artifactsScrum Roles and artifacts
Scrum Roles and artifacts
 
Introduction to Lean and Kanban
Introduction to Lean and KanbanIntroduction to Lean and Kanban
Introduction to Lean and Kanban
 
Scaled Agile Framework
Scaled Agile FrameworkScaled Agile Framework
Scaled Agile Framework
 
Agile-overview: Agile Manifesto, Agile principles and Agile Methodologies
Agile-overview: Agile Manifesto, Agile principles and Agile MethodologiesAgile-overview: Agile Manifesto, Agile principles and Agile Methodologies
Agile-overview: Agile Manifesto, Agile principles and Agile Methodologies
 
OpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQLOpenGurukul : Database : PostgreSQL
OpenGurukul : Database : PostgreSQL
 
Scrum Ceremonies
Scrum CeremoniesScrum Ceremonies
Scrum Ceremonies
 
Scaling agile Principles and Practices
Scaling agile Principles and PracticesScaling agile Principles and Practices
Scaling agile Principles and Practices
 
Agile transformation Explained: Agile 2017 Session
Agile transformation Explained: Agile 2017 SessionAgile transformation Explained: Agile 2017 Session
Agile transformation Explained: Agile 2017 Session
 
Agile at Enterprise Scale: The Tricky Bits
Agile at Enterprise Scale: The Tricky BitsAgile at Enterprise Scale: The Tricky Bits
Agile at Enterprise Scale: The Tricky Bits
 
Integrative OKRs - no cascading OKRs - ramin vatanparast - the-pdsg.com
Integrative OKRs - no cascading OKRs - ramin vatanparast - the-pdsg.comIntegrative OKRs - no cascading OKRs - ramin vatanparast - the-pdsg.com
Integrative OKRs - no cascading OKRs - ramin vatanparast - the-pdsg.com
 
3 Scrum Patterns to Boost Team Productivity
3 Scrum Patterns to Boost Team Productivity3 Scrum Patterns to Boost Team Productivity
3 Scrum Patterns to Boost Team Productivity
 
An Overview of SAFe
An Overview of SAFeAn Overview of SAFe
An Overview of SAFe
 
Certified ScrumMaster Training
Certified ScrumMaster TrainingCertified ScrumMaster Training
Certified ScrumMaster Training
 
The Daily Scrum (The Scrum Events)
The Daily Scrum (The Scrum Events)The Daily Scrum (The Scrum Events)
The Daily Scrum (The Scrum Events)
 
Introduction to scaled agile framework
Introduction to scaled agile frameworkIntroduction to scaled agile framework
Introduction to scaled agile framework
 
Le long chemin du PMU vers la tech company
Le long chemin du PMU vers la tech companyLe long chemin du PMU vers la tech company
Le long chemin du PMU vers la tech company
 
Agile methodology
Agile methodologyAgile methodology
Agile methodology
 
ERP 프로젝트 수행방법론-SAP_v1.2.pptx
ERP 프로젝트 수행방법론-SAP_v1.2.pptxERP 프로젝트 수행방법론-SAP_v1.2.pptx
ERP 프로젝트 수행방법론-SAP_v1.2.pptx
 
MySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL InnoDB Cluster - Advanced Configuration & OperationsMySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL InnoDB Cluster - Advanced Configuration & Operations
 
Agile Marketing: Exploring Scrumban
Agile Marketing: Exploring ScrumbanAgile Marketing: Exploring Scrumban
Agile Marketing: Exploring Scrumban
 

Destacado

Sapcustomerserviceinmanufacturingindustry
SapcustomerserviceinmanufacturingindustrySapcustomerserviceinmanufacturingindustry
Sapcustomerserviceinmanufacturingindustry
striqo
 
Claudiu Niculescu
Claudiu NiculescuClaudiu Niculescu
Claudiu Niculescu
Catalin93
 

Destacado (20)

Topshelf - An easy service hosting framework for building Windows services us...
Topshelf - An easy service hosting framework for building Windows services us...Topshelf - An easy service hosting framework for building Windows services us...
Topshelf - An easy service hosting framework for building Windows services us...
 
PL/SQL & SQL CODING GUIDELINES – Part 4
PL/SQL & SQL CODING GUIDELINES – Part 4PL/SQL & SQL CODING GUIDELINES – Part 4
PL/SQL & SQL CODING GUIDELINES – Part 4
 
C# 6.0
C# 6.0C# 6.0
C# 6.0
 
Architecture in .net
Architecture in .netArchitecture in .net
Architecture in .net
 
Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows Developing Microsoft .NET Applications for Windows
Developing Microsoft .NET Applications for Windows
 
La tics y la formacion docente
La tics y la formacion docenteLa tics y la formacion docente
La tics y la formacion docente
 
Práctica4
Práctica4Práctica4
Práctica4
 
Sapcustomerserviceinmanufacturingindustry
SapcustomerserviceinmanufacturingindustrySapcustomerserviceinmanufacturingindustry
Sapcustomerserviceinmanufacturingindustry
 
Claudiu Niculescu
Claudiu NiculescuClaudiu Niculescu
Claudiu Niculescu
 
Practicas culturales de la cosmovisión diapositivas trabajo 3
Practicas culturales de la cosmovisión diapositivas trabajo 3Practicas culturales de la cosmovisión diapositivas trabajo 3
Practicas culturales de la cosmovisión diapositivas trabajo 3
 
cvROG
cvROGcvROG
cvROG
 
ANTH Final Paper
ANTH Final PaperANTH Final Paper
ANTH Final Paper
 
Virus y antivirus
Virus y antivirusVirus y antivirus
Virus y antivirus
 
Vocabulary List 30
Vocabulary List 30Vocabulary List 30
Vocabulary List 30
 
360° Mongolia Brochure
360° Mongolia Brochure360° Mongolia Brochure
360° Mongolia Brochure
 
50 promesas para un matrimonio feliz
50 promesas para un matrimonio feliz50 promesas para un matrimonio feliz
50 promesas para un matrimonio feliz
 
Common.logging
Common.loggingCommon.logging
Common.logging
 
Visual studio 2017
Visual studio 2017Visual studio 2017
Visual studio 2017
 
Web deploy
Web deployWeb deploy
Web deploy
 
WPF (Windows Presentation Foundation Unit 01)
WPF (Windows Presentation Foundation Unit 01)WPF (Windows Presentation Foundation Unit 01)
WPF (Windows Presentation Foundation Unit 01)
 

Similar a Web deploy command line

Railsconf2011 deployment tips_for_slideshare
Railsconf2011 deployment tips_for_slideshareRailsconf2011 deployment tips_for_slideshare
Railsconf2011 deployment tips_for_slideshare
tomcopeland
 
Phpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friendsPhpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friends
Michael Peacock
 
Facebook的缓存系统
Facebook的缓存系统Facebook的缓存系统
Facebook的缓存系统
yiditushe
 
Flask patterns
Flask patternsFlask patterns
Flask patterns
it-people
 

Similar a Web deploy command line (20)

Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013
 
Burn down the silos! Helping dev and ops gel on high availability websites
Burn down the silos! Helping dev and ops gel on high availability websitesBurn down the silos! Helping dev and ops gel on high availability websites
Burn down the silos! Helping dev and ops gel on high availability websites
 
MeaNstack on Docker
MeaNstack on DockerMeaNstack on Docker
MeaNstack on Docker
 
Open mic ibm connections and ibm verse on premise integration 1
Open mic  ibm connections and ibm verse on premise integration 1Open mic  ibm connections and ibm verse on premise integration 1
Open mic ibm connections and ibm verse on premise integration 1
 
ContainerDays NYC 2016: "OpenWhisk: A Serverless Computing Platform" (Rodric ...
ContainerDays NYC 2016: "OpenWhisk: A Serverless Computing Platform" (Rodric ...ContainerDays NYC 2016: "OpenWhisk: A Serverless Computing Platform" (Rodric ...
ContainerDays NYC 2016: "OpenWhisk: A Serverless Computing Platform" (Rodric ...
 
Drupalcon 2023 - How Drupal builds your pages.pdf
Drupalcon 2023 - How Drupal builds your pages.pdfDrupalcon 2023 - How Drupal builds your pages.pdf
Drupalcon 2023 - How Drupal builds your pages.pdf
 
2023 - Drupalcon - How Drupal builds your pages
2023 - Drupalcon - How Drupal builds your pages2023 - Drupalcon - How Drupal builds your pages
2023 - Drupalcon - How Drupal builds your pages
 
Railsconf2011 deployment tips_for_slideshare
Railsconf2011 deployment tips_for_slideshareRailsconf2011 deployment tips_for_slideshare
Railsconf2011 deployment tips_for_slideshare
 
Deploying configurable frontend web application containers
Deploying configurable frontend web application containersDeploying configurable frontend web application containers
Deploying configurable frontend web application containers
 
Write php deploy everywhere tek11
Write php deploy everywhere   tek11Write php deploy everywhere   tek11
Write php deploy everywhere tek11
 
Atmosphere Conference 2015: Taming the Modern Datacenter
Atmosphere Conference 2015: Taming the Modern DatacenterAtmosphere Conference 2015: Taming the Modern Datacenter
Atmosphere Conference 2015: Taming the Modern Datacenter
 
Open Mic IBM connections and IBM Verse on premise integration
Open Mic IBM connections and IBM Verse on premise integrationOpen Mic IBM connections and IBM Verse on premise integration
Open Mic IBM connections and IBM Verse on premise integration
 
Phpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friendsPhpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friends
 
Facebook的缓存系统
Facebook的缓存系统Facebook的缓存系统
Facebook的缓存系统
 
Write php deploy everywhere
Write php deploy everywhereWrite php deploy everywhere
Write php deploy everywhere
 
Flask patterns
Flask patternsFlask patterns
Flask patterns
 
Server side data sync for mobile apps with silex
Server side data sync for mobile apps with silexServer side data sync for mobile apps with silex
Server side data sync for mobile apps with silex
 
Implementing data sync apis for mibile apps @cloudconf
Implementing data sync apis for mibile apps @cloudconfImplementing data sync apis for mibile apps @cloudconf
Implementing data sync apis for mibile apps @cloudconf
 
Getting Started with Capistrano
Getting Started with CapistranoGetting Started with Capistrano
Getting Started with Capistrano
 
Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11Capifony. Minsk PHP MeetUp #11
Capifony. Minsk PHP MeetUp #11
 

Más de Larry Nung

Más de Larry Nung (20)

Ansible - simple it automation
Ansible - simple it automationAnsible - simple it automation
Ansible - simple it automation
 
sonarwhal - a linting tool for the web
sonarwhal - a linting tool for the websonarwhal - a linting tool for the web
sonarwhal - a linting tool for the web
 
LiteDB - A .NET NoSQL Document Store in a single data file
LiteDB - A .NET NoSQL Document Store in a single data fileLiteDB - A .NET NoSQL Document Store in a single data file
LiteDB - A .NET NoSQL Document Store in a single data file
 
PL/SQL & SQL CODING GUIDELINES – Part 8
PL/SQL & SQL CODING GUIDELINES – Part 8PL/SQL & SQL CODING GUIDELINES – Part 8
PL/SQL & SQL CODING GUIDELINES – Part 8
 
MessagePack - An efficient binary serialization format
MessagePack - An efficient binary serialization formatMessagePack - An efficient binary serialization format
MessagePack - An efficient binary serialization format
 
PL/SQL & SQL CODING GUIDELINES – Part 7
PL/SQL & SQL CODING GUIDELINES – Part 7PL/SQL & SQL CODING GUIDELINES – Part 7
PL/SQL & SQL CODING GUIDELINES – Part 7
 
BenchmarkDotNet - Powerful .NET library for benchmarking
BenchmarkDotNet  - Powerful .NET library for benchmarkingBenchmarkDotNet  - Powerful .NET library for benchmarking
BenchmarkDotNet - Powerful .NET library for benchmarking
 
PLSQL Coding Guidelines - Part 6
PLSQL Coding Guidelines - Part 6PLSQL Coding Guidelines - Part 6
PLSQL Coding Guidelines - Part 6
 
SonarQube - The leading platform for Continuous Code Quality
SonarQube - The leading platform for Continuous Code QualitySonarQube - The leading platform for Continuous Code Quality
SonarQube - The leading platform for Continuous Code Quality
 
SikuliX
SikuliXSikuliX
SikuliX
 
protobuf-net - Protocol Buffers library for idiomatic .NET
protobuf-net - Protocol Buffers library for idiomatic .NETprotobuf-net - Protocol Buffers library for idiomatic .NET
protobuf-net - Protocol Buffers library for idiomatic .NET
 
PL/SQL & SQL CODING GUIDELINES – Part 5
PL/SQL & SQL CODING GUIDELINES – Part 5PL/SQL & SQL CODING GUIDELINES – Part 5
PL/SQL & SQL CODING GUIDELINES – Part 5
 
Regular expression
Regular expressionRegular expression
Regular expression
 
Fx.configuration
Fx.configurationFx.configuration
Fx.configuration
 
StackExchange.redis
StackExchange.redisStackExchange.redis
StackExchange.redis
 
Disruptor
DisruptorDisruptor
Disruptor
 
GRUNT - The JavaScript Task Runner
GRUNT - The JavaScript Task RunnerGRUNT - The JavaScript Task Runner
GRUNT - The JavaScript Task Runner
 
Bower - A package manager for the web
Bower - A package manager for the webBower - A package manager for the web
Bower - A package manager for the web
 
Generic lazy class
Generic lazy classGeneric lazy class
Generic lazy class
 
PL/SQL Coding Guidelines - Part 3
PL/SQL Coding Guidelines - Part 3PL/SQL Coding Guidelines - Part 3
PL/SQL Coding Guidelines - Part 3
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Web deploy command line

  • 1. WEB DEPLOY COMMAND LINE Larry Nung
  • 2. AGENDA Web Deploy Command Line Reference Q & A 2
  • 6. ARGUMENTS  -verb:<verbName>  Specifies a Web Deploy verb. A verb determines the action to be taken on a source or destination object.  <verbName> must be one of the following: delete, dump, getDependencies, getSyste mInfo, or sync.  The sync verb requires both the -source and - dest arguments.  The delete verb requires only the -dest argument. 6
  • 7. ARGUMENTS  -source:<provider>  Specifies the source of the data for the verb argument.  source is a required argument for the sync and dump operations, but not delete.  -dest: <provider>  Specifies the destination of a synchronization operation.  The destination argument is required only if the sync or delete verb is specified. 7
  • 8. ARGUMENTS  -[-<MSDeployOperationSetting> ... ]  Operation settings affect the execution of an entire Web Deploy operation. 8
  • 9. PROVIDER SETTINGS  authType  computerName  encryptPassword  getCredentials  ignoreErrors  includeAcls  password  storeCredentials  tempAgent  userName  wmsvc 9
  • 10. OPERATION SETTINGS  allowUntrusted  appHostConfigDir  declareParam  declareParamFile  dest  disableLink  disableRule  disableSkipDirective  enableLink  enableRule 10
  • 11. OPERATION SETTINGS  enableSkipDirective  postSync  preSync  removeParam  replace  retryAttempts  retryInterval  setParam  setParamFile  showSecure  skip 11
  • 12. OPERATION SETTINGS  source  unicode  useCheckSum  verb  verbose  webServerDir  whatif  xml  xpath 12
  • 13. DUMP  Dump local server  msdeploy -verb:dump -source:webServer 13
  • 14. DUMP  Dump remote server  msdeploy -verb:dump - source:webServer,computerName=<DestServer> 14
  • 15. DUMP  Dump local site  msdeploy -verb:dump - source:appHostConfig="<SourceSite>" 15
  • 16. DUMP  Dump remote site  msdeploy -verb:dump - source:appHostConfig="<SourceSite>",computerName= <SourceServer> 16
  • 17. DUMP 17  Dump local available backups  msdeploy.exe -verb:dump - source:backupManager=<SourceSite>
  • 18. DUMP 18  Dump remote available backups  msdeploy.exe -verb:dump - source:backupManager=<SourceSite>,computerName= <DestServer>
  • 19. SYNC  Sync local server to remote server  msdeploy -verb:sync -source:webServer - dest:webServer,computerName=<DestServer>  Sync remote server to local server  msdeploy -verb:sync - source:webServer,computerName=<SourceServer> - dest:webServer  Sync remote server to remote server  msdeploy -verb:sync - source:webServer,computerName=<SourceServer> - dest:webServer,computerName=<DestServer> 19
  • 20. SYNC  Sync remote app pool to remote app pool  msdeploy –verb:sync – source:appPoolConfig="<SourceSite>",computerName= <SourceServer> - dest :appPoolConfig="<DestSite>",computerName=<De stServer>  Sync remote site to remote site  msdeploy –verb:sync – source:appHostConfig="<SourceSite>",computerName= <SourceServer> – dest :appHostConfig="<DestSite>",computerName=<De stServer> 20
  • 21. SYNC  Sync local package to local site  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<DestSite>" 21
  • 22. SYNC  Sync local package to remote site  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<SourceSite>",computerName=< SourceServer> 22
  • 23. SYNC  Sync local site to local package  msdeploy -verb:sync - source:appHostConfig="<SourceSite>" -dest: package=<Package> 23
  • 24. SYNC  Sync remote site to local package  msdeploy -verb:sync - source:appHostConfig="<SourceSite>",computerName= <SourceServer> -dest: package=<Package> 24
  • 25. SYNC 25  Backup local site  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>
  • 26. SYNC 26  Backup remote site  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>,computerName=<Des tServer>
  • 27. SYNC 27  Restore local site to specified backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>/<BackupFile>
  • 28. SYNC 28  Restore remote site to specified backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>/<BackupFile>, computerName=<DestServer>
  • 29. SYNC 29  Restore local site to last backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<siteName>,useLatest=true
  • 30. SYNC 30  Restore remote site to last backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<siteName>,useLatest=true, computerName=<DestServer>
  • 31. SYNC 31  Recycle local application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>"
  • 32. SYNC 32  Recycle remote application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>" , computerName=<DestServer>
  • 33. SYNC 33  Stop local application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StopAppPool"
  • 34. SYNC 34  Stop remote app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StopAppPool" , computerName=<DestServer>
  • 35. SYNC 35  Start local app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StartAppPool"
  • 36. SYNC 36  Start remote app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StartAppPool" , computerName=<DestServer>
  • 37. SYNC 37  Stop remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /stop",computerName=<DestServer>
  • 38. SYNC 38  Start remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /start",computerName=<DestServer>
  • 39. SYNC 39  Restart remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /restart",waitinterval=15000,computerName=<DestServ er>
  • 40. SYNC 40  Sop site => Sync local package to remote site => Start site  msdeploy -verb:sync - presync:runCommand="%windir%system32inetsrvappc md.exe stop apppool <DestSite>",successReturnCodes=0,waitinterval=15000,c omputerName=<DestServer> - source:package=<Package> - dest:appHostConfig="<DestSite>",computerName=<DestS erver> - postsync:runCommand="%windir%system32inetsrvappc md.exe start apppool <DestSite>",successReturnCodes=0,waitinterval=15000,c omputerName=<DestServer>
  • 42. SYNC  Sync local package to remote site and exclude specified file  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<DestSite>",computerName=<DestS erver> - skip:objectname='filePath',absolutepath='<FilePath>' 42
  • 43. DELETE  Delete local site  msdeploy –verb:delete – dest:apphostconfig="<DestSite>" – skip:objectname=machineconfig – skip:objectname=rootwebconfig 43
  • 44. DELETE  Delete remote site  msdeploy –verb:delete – dest:apphostconfig="<DestSite>",computerName=<Des tServer> –skip:objectname=machineconfig – skip:objectname=rootwebconfig 44
  • 45. DELETE  Delete local app pool  msdeploy –verb:delete –dest: appPoolConfig ="<DestAppPool>" 45
  • 46. DELETE  Delete remote app pool  msdeploy –verb:delete –dest: appPoolConfig ="<DestAppPool>",computerName=<DestServer> 46
  • 47. DELETE  Delete local site content  msdeploy -verb:delete - dest:contentPath=<ContentPath> 47
  • 48. DELETE  Delete remote site content  msdeploy -verb:delete - dest:contentPath=<ContentPath> ,computerName=<De stServer> 48
  • 49. DELETE  Delete local file  msdeploy -verb:delete -dest:filePath="<FilePath>" 49
  • 50. DELETE  Delete remote file  msdeploy -verb:delete - dest:filePath="<FilePath>",computerName=<DestServer > 50
  • 51. DELETE  Delete local application  msdeploy -verb:delete -dest:iisapp="<AppPath>" 51
  • 52. DELETE  Delete remote application  msdeploy -verb:delete - dest:iisapp="<AppPath>",computerName=<DestServer> 52
  • 53. GETDEPENDENCIES  Get local server dependencies  msdeploy -verb:getDependencies -source:webServer 53
  • 54. GETDEPENDENCIES  Get remote server dependencies  msdeploy -verb:getDependencies - source:webServer>",computerName=<SourceServer> 54
  • 55. GETSYSTEMINFO  Get local server system info  msdeploy -verb:getSystemInfo -source:webServer 55
  • 56. GETSYSTEMINFO  Get remote server system info  msdeploy -verb:getSystemInfo -source:webServer >",computerName=<SourceServer> 56
  • 58. REFERENCE  Web Deploy Command Line Reference  https://technet.microsoft.com/en- us/library/dd568991(v=ws.10).aspx 58