Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository for storing shared code infrastructure used in Azure by our services.

Developer Steps

Java 17 and Maven

>>> java -version
>>> mvn -version

Azure Functions Core Tools

>>> func --version
If missing:
>>> npm install -g azure-functions-core-tools@4 --unsafe-perm true

Create a folder and Inside Create Azure Function project

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=false

OR In VS Code (Recommended):

  1. Install extension: Azure Functions
  2. Press: Ctrl + Shift + P
  3. Search: Azure Functions: Create New Project
  4. Select folder
  5. Choose: Java and Java 17 and Choose: HTTP trigger
  6. Enter Function name
  7. Authorization: Function

Test locally

>>> 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

Deploy this function to Azure

>>> mvn azure-functions:deploy

About

Organization's Infrastructure for Azure Pipelines

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages