problem with atlassian/azure-web-apps-deploy:1.2.1
Asked by rajputj3@bv.com:

I am using

atlassian/azure-web-apps-deploy:1.2.1 and it seems like it is copying whole folder on Azure cloud instead of its contents and subfolders.

Can you please help? Here is my YML file.

# Template .NET Core build

# This template allows you to validate your .NET Core package.  
# The workflow allows running tests and code linting on the default branch.

# To run your pipeline on a Windows machine, create a self-hosted Windows runner.  
# For instructions on setting up a Windows runner, see <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/>

image: atlassian/default-image:2

pipelines:  
branches:  
master:  
- step:  
name: Build and Test  
image: mcr.microsoft.com/dotnet/core/sdk:3.1  
caches:  
- dotnetcore  
script:  
- export PROJECT_NAME=Web/Web.csproj  
- dotnet restore  
- dotnet build $PROJECT_NAME  
- dotnet publish $PROJECT_NAME --configuration Release -r win-x64 --no-self-contained --output wwwroot  
- pipe: snyk/snyk-scan:1.0.1  
variables:  
SNYK_TOKEN: $SNYK_API_TOKEN  
LANGUAGE: "node" # Required unless SNYK_TEST_JSON_INPUT is set  
IMAGE_NAME: "\<string\>" # Only required if LANGUAGE set to "docker"  
SNYK_BASE_IMAGE: "\<string\>" # Custom base image  
CODE_INSIGHTS_RESULTS: "true" # Optional.  
SNYK_TEST_JSON_INPUT: "\<string\>" # Optional. The filename or path of a JSON file containg the output from running a test with the Snyk CLI (with json output option).  
PROTECT: "\<boolean\>" # Optional.  
DONT_BREAK_BUILD: "\<boolean\>" # Optional.  
MONITOR: "true" # Optional.  
SEVERITY_THRESHOLD: "\<low\|medium\|high\|critical\>" # Optional.  
ORGANIZATION: "\<string\>" # Optional.  
PROJECT_FOLDER: "from-azure-devops" # Optional.  
TARGET_FILE: "\<string\>" # Optional.  
EXTRA_ARGS: "all-projects" # Optional.  
DEBUG: "\<boolean\>" # Optional.  
SNYK_API: "\<string\>" # Optional.  
artifacts:  
- wwwroot/\*\*  
- step:  
name: Build Web zip  
script:  
- cd wwwroot  
- zip -r Web.zip .  
# - mv publish wwwroot  
# - zip -r Web.zip wwwroot/\*\*  
artifacts:  
- Web.zip # pass file to the next step  
# - step:  
# name: "Deploy to Test"  
# deployment: test  
# script:  
# - pipe: atlassian/azure-web-apps-deploy:1.2.1  
# variables:  
# AZURE_APP_ID: $AZURE_APP_ID  
# AZURE_PASSWORD: $AZURE_PASSWORD  
# AZURE_TENANT_ID: $AZURE_TENANT_ID  
# AZURE_RESOURCE_GROUP: 'oneclick_002_test'  
# AZURE_APP_NAME: 'web-oneclick-test-02'  
# ZIP_FILE: 'Web.zip'


Answers:
author: Syahrul
body: G'day, [rajputj3@bv.com](/t5/user/viewprofilepage/user-id/5467490)

For your information, this pipe was supported by the Microsoft team, and seems like they stopped maintaining it:

This sample is provided "as is" and is not supported. Likewise, no commitments are made as to its longevity or maintenance. To discuss this sample with other users, please visit the Azure DevOps Services section of the Microsoft Developer Community: <https://developercommunity.visualstudio.com/spaces/21/index.html>.

Regards,  
Syahrul

comments: author: Igor Stoyanov
body: [rajputj3@bv.com](/t5/user/viewprofilepage/user-id/5467490) , [@Syahrul](/t5/user/viewprofilepage/user-id/744536) :[this pipe](https://bitbucket.org/atlassian/azure-web-apps-deploy/src/master/) is maintained by atlassian Bitbucket Pipelines Pipes Team and under the hood executes the next command:  

> az webapp deployment source config-zip \<parameters\>.

<br />

So to understand what to deploy [rajputj3@bv.com](/t5/user/viewprofilepage/user-id/5467490) : you should [read the docs](https://learn.microsoft.com/en-us/cli/azure/webapp/deployment/source?view=azure-cli-latest) and provide correct zip archive.  

[@Syahrul](/t5/user/viewprofilepage/user-id/744536) : this pipe is under atlassian workspace, you mix up it with microsoft workspace. Pipes under microsoft workspace are not maintained  

Regards, Igor


Tags: bitbucket-cloud

cloud

pipes