Donal McWeeney
Donal McWeeney

Reputation: 241

Extract Zip Artifact as part of Azure App Service Deploy?

I'm in the process of setting up a build and release of an asp.net core web app on vsts.

I've the build working with the following tasks:

This all works fine...

The release is an "Azure App Service Deploy" task. The "package or folder" is $(System.DefaultWorkingDirectory)/MyBuild/MyApp_Package It is "working" sortof in that it is deploying the zip file to the Azure web app but does not extract the files.

How do I get it to extract the zip on the azure web site?

Upvotes: 4

Views: 7280

Answers (2)

Assassin
Assassin

Reputation: 1302

I had the same problem. However the "Publish using Web Deploy" option has been checked all the time. I also tried the version 2 and 3 of the task.

My solution was to add unzip .zip and rm

Deployment Script example

Upvotes: 3

starian chen-MSFT
starian chen-MSFT

Reputation: 33698

Since you are deploying a package (zip), you need to check Publish using Web Deploy option and specify the zip file for Package or folder.

enter image description here

Upvotes: 5

Related Questions