Skip to content

Commit

Permalink
Azure App Service Zip Push Deploy (#412)
Browse files Browse the repository at this point in the history
* Create azure-app-service-zip-pus-deploy.md

* rename and better wording

* Add Azure App Service Zip Push Deploy to the list

* Add Azure App Service Zip Push Deploy to sidebar

* Shorter: Azure Zip Push

* use Azure App Service Zip Push naming

* Make this list shorter too
  • Loading branch information
Ilya Finkelshteyn authored and FeodorFitsner committed Jan 25, 2018
1 parent ce6ad14 commit 02eade5
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/_includes/docs_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h4>Deployment</h4>
<li><a href="/docs/deployment/ftp/">FTP, SFTP</a></li>
<li><a href="/docs/deployment/sql-database-ssdt/">SQL Databases (SSDT)</a></li>
<li><a href="/docs/deployment/azure-webjob/">Azure WebJob</a></li>
<li><a href="/docs/deployment/azure-app-service-zip-push-deploy/">Azure App Service Zip Push</a></li>
<li><a href="/docs/deployment/azure-blob/">Azure Blob</a></li>
<li><a href="/docs/deployment/azure-cloud-service/">Azure Cloud Service</a></li>
<li><a href="/docs/deployment/amazon-s3/">Amazon S3</a></li>
Expand Down
41 changes: 41 additions & 0 deletions src/docs/deployment/azure-app-service-zip-push-deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: docs
title: Publishing to Azure App Service with Zip Push Deploy
---

# Publishing to Azure App Service with Zip Push Deploy

AppVeyor allows publishing of `.zip` artifacts to Azure App Service with [Zip Push Deploy](https://blogs.msdn.microsoft.com/appserviceteam/2017/10/16/zip-push-deployment-for-web-apps-functions-and-webjobs/).

## Packaging artifact

For ASP.NET Web application please set `publish_wap_xcopy: true` or select `Package Web Applications for XCopy deployment` under **Build** if you use UI.
For other kind of application, simple add folder with all site assets (for example `\src\dist`) to `artifacts` section in YAML (or **Artifacts** tab in UI) and AppVeyor will zip it.

## Publishing credentials

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.

## Provider settings

* **App Service site name** (`website`) - App Service site name without `.azurewebsite.net`, e.g. `mywebsite`.
* **App Service Environment** (`appservice_environment`) - Optional. Azure website is deployed to Azure AppService environment.
* **App Service Environment Name** (`appservice_environment_name`) - Available if **App Service Environment** is checked. AppService environment website default URL part, located before `p.azurewebsites.net`.
* **Deployment slot name** (`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.
* **Deployment credentials username** (`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.
* **Deployment credentials password** (`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(s) to deploy** (`artifact`) - Optional. Artifact "deployment name" or filename to push.
* **Async deployment** (`async_deploy`) - Optional. Deployment finished as soon as the file is uploaded. URL that can be queried for realtime deployment status will be returned.
* **Retry attempts** (`retry_attempts`) - Optional. Specifies the number of times the provider will retry after a failure. The default number of retries is 0.
* **Retry interval** (`retry_interval`) - Optional. Specifies, in milliseconds, the interval between provider retry attempts. The default is 1000 (one second).

Configuring in `appveyor.yml`:

```yaml
deploy:
- provider: AzureAppServiceZipDeploy
website: mywebsite
username: myDeploymentUsername
password:
secure: dNPsSiN7aAwAe2K7Aw+IVw==
```
4 changes: 4 additions & 0 deletions src/docs/deployment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ providers available in each mode:
<td><a href="/docs/deployment/azure-webjob/">Azure WebJob</a></td>
<td><a href="/docs/deployment/azure-webjob/">Azure WebJob</a></td>
</tr>
<tr>
<td><a href="/docs/deployment/azure-app-service-zip-push-deploy/">Azure App Service Zip Push</a></td>
<td><a href="/docs/deployment/azure-app-service-zip-push-deploy/">Azure App Service Zip Push</a></td>
</tr>
<tr>
<td><a href="/docs/deployment/azure-blob/">Azure Blob</a></td>
<td><a href="/docs/deployment/azure-blob/">Azure Blob</a></td>
Expand Down

0 comments on commit 02eade5

Please sign in to comment.