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.
Create two functions with Micronaut Launch same setting
Micronaut Application
.Gradle
azure-function
Create two functions in the Azure Portal: one with operating system
Linux
and the otherWindows
. 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.
If you selected Windows as an operation system it will work. If you selected linux, it does not.