Simple command line tool to deploy a folder or a zip file to an Azure Website using WebDeploy.
See this post for details.
Note: the .PublishSettings file discussed here is the one you can download for a specific Azure Web App via the portal.
Sample use:
WAWSDeploy c:\somefolder mysite.PublishSettings
WAWSDeploy c:\somefile.zip mysite.PublishSettingsWith optional password argument
WAWSDeploy c:\somefolder mysite.PublishSettings /p mypubsettingspassword
WAWSDeploy c:\somefolder mysite.PublishSettings /password mypubsettingspasswordAllowing untrusted cert
WAWSDeploy c:\somefolder mysite.PublishSettings /auDelete files on the remote host
WAWSDeploy c:\somefolder mysite.PublishSettings /dUse checksums instead of timestamps
WAWSDeploy c:\somefolder mysite.PublishSettings /cVerbose Logging
WAWSDeploy c:\somefolder mysite.PublishSettings /vWAWSDeploy c:\somefolder mysite.PublishSettings /wTarget Path - The virtual directory to deploy to
WAWSDeploy C:\somefolder mysite.PublishSettings /t someVirtualDirectoryNameTarget Path - Using a physical target folder
WAWSDeploy C:\somefolder mysite.PublishSettings /t d:\home\site\blahApp offline - Attempt to turn ASP.Net application off before deployment.
WAWSDeploy C:\somefolder mysite.PublishSettings /oSetup a higher number of retries in case of deployment failure (WebDeployment default is 5)
WAWSDeploy C:\somefolder mysite.PublishSettings /r 10Setup the interval (in milliseconds) between each deployment attempts in case of deployment failure (WebDeployment default is 1000ms)
WAWSDeploy C:\somefolder mysite.Publishsettings /i 6000Skip the app_data directory during the deployment.
WAWSDeploy C:\somefolder mysite.PublishSettings /saUser defined folders regular expressions that should be skipped during deployment.
WAWSDeploy C:\somefolder mysite.PublishSettings /sf .*my_tools .*local_cachenpm install -g grunt-cli
npm install
grunt
Add /SkipAppData and /SkipFoldersRegexps switches
Add /RetryAttempts and /RetryInterval switches
Add /AppOffline switch
Add /TargetPath switch
Add /TargetPath switch
Add -t switch to allow targeted deployment to a specific virtual directory.
Add -WhatIf and -deleteexistingfiles switches
Add support for untrusted certs.
Support optionally passing password
Support publishing from zip files
Original version