Forum Discussion
anujsharrma
May 08, 2020Copper Contributor
Extract zip file on azure web app
I am using below YAML script to deploy my artifact on azure web app, it works fine but it doesn't unzip the file on azure web app, it just deploy zip file and my web app doesn't run coz of zip file ...
RodNet
May 08, 2020Brass Contributor
How Are you fine?
I hope So!
In the mailto:AzureWebApp@1 the " FILE " is on the:
$(System.DefaultWorkingDirectory)
Accordingly to the documentation the snippet looks for the .zip file on the path above.
Could you try doing like this:
- task: AzureWebApp@1
inputs:
azureSubscription: '<Azure service connection>'
appName: '<Name of web app>'
package: $(System.DefaultWorkingDirectory)/**/*.zip
Documentation Link: https://docs.microsoft.com/en-us/azure/devops/pipelines/targets/webapp?view=azure-devops&tabs=yaml
Let me know if I could help you with this.
- anujsharrmaMay 10, 2020Copper Contributor
RodNet Thanks for your response but unfortunately i tried this approach but it doesn't work. i got an error that no package found with specified pattern
😞
- RodNetMay 10, 2020Brass ContributorHum....
I think that you need to review the build pipeline.
Have you published your artifacts package ?
If not try to add this line in the final of you .yml build pipeline.
task: PublishBuildArtifacts@1"
Follow this link will help.
https://developercommunity.visualstudio.com/content/problem/349729/error-no-package-found-with-specified-pattern-dar1.html
Hope it can helps