Repository for storing shared code infrastructure used in Azure by our services.
>>> java -version
>>> mvn -version
>>> func --version
If missing:
>>> npm install -g azure-functions-core-tools@4 --unsafe-perm true
Terminal:
>>> mvn archetype:generate -DarchetypeGroupId=com.microsoft.azure -DarchetypeArtifactId=azure-functions-archetype -DarchetypeVersion=1.38 -DgroupId=com.patchflow -DartifactId=projectanalyzer-function -DinteractiveMode=false
OR
mvn archetype:generate ^
-DarchetypeGroupId=com.microsoft.azure ^
-DarchetypeArtifactId=azure-functions-archetype ^
-DarchetypeVersion=1.38 ^
-DgroupId=com.patchflow ^
-DartifactId=patchflowai-pistory ^
-DinteractiveMode=falseOR In VS Code (Recommended):
- Install extension: Azure Functions
- Press: Ctrl + Shift + P
- Search: Azure Functions: Create New Project
- Select folder
- Choose: Java and Java 17 and Choose: HTTP trigger
- Enter Function name
- Authorization: Function
>>> mvn clean package -DskipTests
>>> mvn azure-functions:run
Skip tests while developing
OR Delete the template tests and run
>>> mvn clean package
>>> mvn azure-functions:run
>>> mvn azure-functions:deploy