Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,626
Community Members
 
Community Events
185
Community Groups

Azure Functions are not visible in the function list when trying to deploy thru Bitbucket pipeline

Hi,

I'm trying to deploy my first http trigger Function App to Azure.

It was created with the Azure Function extension in VS Code. I use my Bitbucket Repo as a source and the Gradle as build tool.

My functions are working well locally and when i deploy manually I can see my functions in the Azure Functions list.

we are using username and password for azure login.

However when i try to deploy it thru my bitbucket pipeline

I have no error on the deployment itself but I cannot see my functions in the Azure Functions list.

Below is my bitbucket pipeline code:

image: mcr.microsoft.com/openjdk/jdk:11-ubuntu
pipelines:
default: #this runs for any unspecified branches_
- step:
name: Install dependencies
caches:
- gradle
script:
- echo 'Display Java version'
- java -version
- step:
name: build
script:
- bash ./gradlew clean build
artifacts:
- build/libs/*.jar
- step:
name: Function App Deployment
script:
- pipe: atlassian/azure-cli-run:1.1.0
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
CLI_COMMAND: 'az functionapp deployment source config-zip --resource-group ResourceGroup1 --name FunctionName1 --src build/libs/Application.jar'

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 28, 2022

@anusha reddy hi . Thanks for your question. You can add DEBUG to see more detailed output. Also before pipe execution you can execute

 ls -lat

 to see if in the step with pipe you have your files. 

Also check that you provide 

build/libs/*.jar

in artifacts, but your source is just

build/libs/Application.jar

maybe problem here.

 

Regards, Igor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events