You can use Web Deploy v3 in CI to deploy your web application.
In Web Deploy V3, we added support for automatically switching to an ASP.Net application offline before publishing to it. This is useful if the user wants their application to not block the file (for example, Sdf SQL CE files that allow only one connection to the file at a time), or if they want visitors to their site to not affect the publication process. When the publishing process, the file App_Offline.htm will be deleted, and the site will be online again.
Or you can add a PowerShell script as shown below to deploy your web application to Azure:
param($websiteName, $packOutput) $website = Get-AzureWebsite -Name $websiteName
Link from: https://msdn.microsoft.com/en-us/Library/vs/alm/Build/azure/deploy-aspnet5
source share