micronaut-projects / micronaut-azure

Micronaut Projects for Microsoft Azure
Apache License 2.0
8 stars 13 forks source link

Micronaut Azure HTTP Function does not seem to work with Linux, same code works with Windows #202

Open sdelamo opened 3 years ago

sdelamo commented 3 years ago

Create two functions with Micronaut Launch same setting

Create two functions in the Azure Portal: one with operating system Linux and the other Windows. Choose Runtime Java 11 for both.

Edit build.gradle in both functions. Set function name, Operating Sytem, region and resource group in the azure extension to match the values you introduced in Azure Portal.

Deploy both functions with:

./gradlew azureFunctionsDeploy

The do a curl. E.g.

curl - i https://testmicronautlinux.azurewebsites.net/api/micronautguide
HTTP/1.1 502 Bad Gateway
curl - i https://testmicronautwindows.azurewebsites.net/api/micronautguide
200 OK
Example Response

If you selected Windows as an operation system it will work. If you selected linux, it does not.

sdelamo commented 3 years ago

It works for JDK8 and linux