Azure / Azure/Azure-Functions

Deploying Java Azure Functions with zip deployment

Open
#1,280 11 comments 0 reactions 1 assignee Claimed by @kulkarnisonia16 View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Our team currently is able to properly deploy Azure Functions using Maven with the Azure Functions Plugin.

```
mvn clean package azure-functions:deploy "-DfunctionAppName=my-test-app" "-DfunctionAppRegion=centralus" "-DfunctionResourceGroup=my-test-rg"
```

We have tried exploring using zip deploys with both the Azure CLI and the zip deploy endpoint but with no success.

```
mvn clean package "-DfunctionAppName=my-test-app" "-DfunctionAppRegion=centralus" "-DfunctionResourceGroup=my-test-rg"
cd target/azure-functions/
zip -r my-test-app.zip my-test-app/
az functionapp deployment source config-zip -g my-test-rg -n my-test-app --src my-test-app.zip
```

```
mvn clean package "-DfunctionAppName=my-test-app" "-DfunctionAppRegion=centralus" "-DfunctionResourceGroup=my-test-rg"
cd target/azure-functions/
zip -r my-test-app.zip my-test-app/
curl -X POST -u "$my-test-app" https://my-test-app.scm.azurewebsites.net/api/zipdeploy -T my-test-app.zip
```

In both cases, I have confirmed the zip files were correctly uploaded to the Azure Function by downloading the app content after the zip deployments. From what I can see, the downloaded zip has the exact same files as the Maven Azure Functions Plugin deployment, but when we deploy with the zip methods the functions do not show up in Azure. Is there a deployment step we are missing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.