AppVeyor allows publishing of .zip
artifacts to Azure App Service with Zip Deploy.
publish_wap_xcopy: true
in the build
section in YAML, or select Package Web Applications for XCopy deployment
under Build if you use UI.publish_azure_webjob: true
in the build
section in YAML, or select Package Azure WebJobs for Zip Push deployment
under Build if you use UI.\src\dist
) to artifacts
section in YAML (or Artifacts tab in UI) and AppVeyor will zip it.Please use deployment credentials you can set in Azure Portal. Optionally you can use username and password from downloaded website publishing profile XML, but this will not work transparently with deployment slots.
website
) - App Service site name without .azurewebsite.net
, e.g. mywebsite
.appservice_environment
) - Optional. Azure website is deployed to Azure AppService environment.appservice_environment_name
) - Available if App Service Environment is checked. AppService environment website default URL part, located before p.azurewebsites.net
.slot
) - Optional. If not specified artifact will be deployed to default (production) slot. Please note that you have to use Deployment (aka User-level) and not publishing profile (aka Site-level) credentials to transparently deploy to different slots.username
) - Username from deployment credentials you can set in Azure Portal. Optionally you can use username and password from downloaded website publishing profile XML, but this will not work transparently with deployment slots.password
) - Password from deployment credentials you can set in Azure Portal. As said earlier you can use credentials from downloaded website publishing profile XML, but this will not work transparently with deployment slots.artifact
) - Optional. Artifact “deployment name” or filename to push.async_deploy
) - Optional. When selected in UI or set to true
in YAML, deployment finished as soon as the file is uploaded. URL that can be queried for realtime deployment status will be returned.retry_attempts
) - Optional. Specifies the number of times the provider will retry after a failure. The default number of retries is 0.retry_interval
) - Optional. Specifies, in milliseconds, the interval between provider retry attempts. The default is 1000 (one second).Configuring in appveyor.yml
:
deploy:
- provider: AzureAppServiceZipDeploy
website: mywebsite
username: myDeploymentUsername
password:
secure: dNPsSiN7aAwAe2K7Aw+IVw==