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

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

anusha reddy October 24, 2022

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.
October 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