title: Deploy to Azure Web App Virtual Application with Visual Studio Online Source Control Integration
body: <p>We have an Azure Web App that we have Source Control integration setup with Visual Studio Online via the built in Azure functionality. This, of course, creates a build definition in our Visual Studio Online account. We have had this configured and it has worked just fine for deploying our website by queuing a build.</p>
  
  <p>Our ultimate configuration is to actually create a Virtual Application and use the build to deploy to the Virtual Application instead of the web app site root.</p>
  
  <p>So, we created the Virtual Application in the portal. See screenshot:
  <a href="https://i.stack.imgur.com/mUPMa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mUPMa.png" alt="screen shot of virtual application configuration"></a></p>
  
  <p>Our trouble comes in that we can't get the build definition to actually deploy to this virtual application. The build either fails or the files still end up in the site\wwwroot folder.</p>
  
  <p>Our azure web app name is: inyoforum(staging)</p>
  
  <p>We've tried numerous variations of the following MSBuild arguments:
  /p:DeployIisAppPath="inyoforum__Staging/Forum"</p>
  
  <p>/p:DeployIisAppPath="inyoforum__Staging\Forum"</p>
  
  <p>/p:DeployIisAppPath="inyoforum(staging)/Forum"</p>
  
  <p>/p:DeployIisAppPath="inyoforum(staging)\Forum"</p>
  
  <p>We even tried other variations. We tried using a publish profile instead. We can get a publish from our local Visual Studio application to the virtual application, but we've been unable to do it from the build definition.</p>
  
  <p>Any suggestions on other things to try?</p>