/azure-function-POC

Prof of concept of using Azure function

Primary LanguageJava

Azure Function - HTTP Trigger Example

Table of Contents

Description

This Azure Function is designed to be triggered via an HTTP call. It utilizes the Jackson library to parse incoming JSON data into a User object and then stores the parsed User object in Cosmos DB. This README.md file provides detailed information on the purpose of the function and how to set it up for local development.

Getting Started

To set up and run this Azure Function locally, follow the steps below:

Prerequisites

Make sure you have the following frameworks and libraries installed on your local development environment:

Local Configuration

  1. Clone this repository to your local machine:

    git clone https://github.com/JAVA-MSDT/azure-function-POC
    
  2. Make sure that you have Azure Functions Core Tools & Azure Cosmos DB Emulator downloaded & installed locally.

  3. Using your IDE (Maven extension) mvn clean package then mvn azure-functions:run or just Run the function itself from the green Run beside the function name.

  4. Using Postman you can send a request, attached a Postan collection for the easy testing.

  5. Check the console the running port, because sometimes the port of randomly generated every run.

  6. Make sure that you have run the Cosmos Emulator.