Repository for storing shared code infrastructure used in Azure for 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 In VS Code:
- 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
>>> mvn azure-functions:run
>>> mvn azure-functions:deploy