Java template to create an Azure Function.
There is an example of a Http Trigger function.
docker build -t pagopa-functions-template .
cp .env.example .env
and replace in .env
with correct values, then typing :
docker run -p 80:80 --env-file=./.env pagopa-functions-template
curl http://localhost:8999/example
On terminal and typing :
cp local.settings.json.example local.settings.json
then replace
EVENTHUB_CONN_STRING
andCOSMOS_CONN_STRING
with real one connection stringCOSMOS_DB_CONTAINER_NAME
andCOSMOS_DB_NAME
with correct value
to doc details about AZ fn config see here
mvn clean package
mvn azure-functions:run
curl http://localhost:7071/example
Configure the SonarCloud project 👉 guide.