GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eggboy/springcloud-azurefunction: Latest Azure Function built with Spring Cloud Function in Java 21

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
host.json
host.json
 
 
local.settings.json
local.settings.json
 
 
pom.xml
pom.xml
 
 

Repository files navigation

CodeQL

springcloud-azurefunction

Azure Function built with Spring Cloud Function in Java 21

Prerequisites

  • JDK 21
  • Maven
  • Azure Functions Core Tools v4+

Build

mvn clean package

Run Locally

mvn azure-functions:run

Then use curl to interact with the REST API:

# Create a user
curl -X POST -H 'Content-Type:application/json' http://localhost:7072/api/AzureWebAdapter/user -d '{"userId":"1","lastName":"Doe","firstName":"John","email":"[email protected]"}'

# Get a user
curl -X GET http://localhost:7072/api/AzureWebAdapter/user/1

Deploy to Azure

az login
mvn azure-functions:deploy -Pdeploy

You can override the default Azure resource settings with -D flags:

mvn azure-functions:deploy -Pdeploy \
  -DfunctionAppName=my-app \
  -DfunctionAppRegion=westus \
  -DfunctionResourceGroup=my-resource-group

About

Latest Azure Function built with Spring Cloud Function in Java 21

Topics

azureazure-functionsjava-on-azurespring-bootspring-cloudspring-cloud-function

Resources

Readme
Activity

Stars

4 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.