title: Deploying WebSite builds to Azure from VSTS Release Management
body: <p>I'm kicking the tires on the preview for the Visual Studio Team Services new Release Management system. My scenario is a classic website (ASP.NET 4.5) with a Git repo hosted in VSTS. The build definition is successful as seen here:</p>
  
  <p><a href="https://i.stack.imgur.com/MIwNS.png"><img src="https://i.stack.imgur.com/MIwNS.png" alt="enter image description here"></a> </p>
  
  <p>It is set up to publish as an artifact that can be picked up by Release Manager as shown here:</p>
  
  <p><a href="https://i.stack.imgur.com/dJn8J.png"><img src="https://i.stack.imgur.com/dJn8J.png" alt="enter image description here"></a></p>
  
  <p>On the Release Manager side I have that artifact linked properly as shown here:</p>
  
  <p><a href="https://i.stack.imgur.com/qBdoF.png"><img src="https://i.stack.imgur.com/qBdoF.png" alt="enter image description here"></a></p>
  
  <p>And here you can see my environments as well as the associated tasks (all 3 are clones)</p>
  
  <p><a href="https://i.stack.imgur.com/9hKp4.png"><img src="https://i.stack.imgur.com/9hKp4.png" alt="enter image description here"></a></p>
  
  <p>When I run the release the build publishes fine, it connects to my subscription but when it attempts to find the package file it has the following error on line 101 of the output log:</p>
  
  <p><strong>"No files were found to deploy with the search pattern 'C:\a\4fe43dd1a***.zip'"</strong></p>
  
  <p>Here is the full output:</p>
  
  <p><a href="https://i.stack.imgur.com/i8jmp.png"><img src="https://i.stack.imgur.com/i8jmp.png" alt="enter image description here"></a></p>
  
  <p>This is where I am stuck as I assumed my artifact link via VSTS should resolve this path for me. Obviously I am missing an important piece of the puzzle somewhere, but I've followed the available documentation as best as I can.</p>
  
  <p>If anyone has a solution or can point me in the right direction it would be much appreciated!</p>
  
  <p><strong>--- EDIT ---</strong></p>
  
  <p>I used the file picker to select a web deploy package (see below). I tried using the root website as well as the bin folder. Both attempts results in an error stating: <strong>"No files were found to deploy with search pattern 'C:\a\4fe43dd1a\Classic Website Definition\drop\ClassicWebsite\bin'"</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/Z2pit.png"><img src="https://i.stack.imgur.com/Z2pit.png" alt="enter image description here"></a></p>
  
  <p><strong>--- EDIT 2 ---</strong></p>
  
  <p>I added an MSBuild task to my BUILD process with the following MSBuildArguments</p>
  
  <p><code>/p:OutDir=$(build.stagingDirectory) /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true</code></p>
  
  <p>and in my Copy/Publish Artifacts task I limited my output to only copy .zip files. Now in my RELEASE process when I navigate to find a "Web Deploy Package" the "drop" folder is empty. Here is a screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/QjvMh.png"><img src="https://i.stack.imgur.com/QjvMh.png" alt="enter image description here"></a></p>
  
  <p>I think I'm on the right path, I just need help figuring out to tune my BUILD tasks to generate the right artifacts for my RELEASE process to use. Any help would be appreciated.</p>