Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sdelamo opened this issue May 10, 2021 · 1 comment

Comments

@sdelamo
Copy link
Contributor

sdelamo commented May 10, 2021

Create two functions with Micronaut Launch same setting

  • Application Type: Micronaut Application.
  • Build Tool: Gradle
  • Feature: azure-function

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
Copy link
Contributor Author

sdelamo commented May 19, 2021

It works for JDK8 and linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant