This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.88.0 published on Friday, Feb 14, 2025 by Pulumi
Azure Function with Spring Boot Native and GraalVM
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.88.0 published on Friday, Feb 14, 2025 by Pulumi
Starting point for building Spring Native application hosted in Azure Function.
Inspired by Julien Dubois and Spring Native - Cloud Function Netty example.
Azure Functions custom handlers are used to run the GraalVM binary.
Running the App in Azure
Create a new stack:
$ pulumi stack init dev
Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az login
Set the Azure region location:
$ pulumi config set azure-native:location westus
Run
pulumi up
to preview and deploy changes:$ pulumi up Previewing changes: ... Performing changes: ... Resources: + X created Duration: ...
Check the deployed website endpoint:
$ pulumi stack output endpoint https://<identifier>.web.core.windows.net/api/hello $ curl "$(pulumi stack output endpoint)" {"message":"Hello from Spring, Pulumi!"}
Running the App locally
Run Spring Boot application and send a request:
gradle bootRun curl localhost:8080
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.88.0 published on Friday, Feb 14, 2025 by Pulumi