GithubHelp home page GithubHelp logo

azure-functions-dapr-aca-deployment's Introduction

azure-functions-dapr-aca-deployment

This repo contains bicep script to deploye a Dotnet Azure Function with Dapr extension in ACA.

Running the bicep script

az group create --name {resourceGroupName} --location eastasia
az deployment group create --resource-group {resourceGroupName} --template-file azure-functions-dapr-enabled-aca.bicep

Bicep script will create below resources in Azure.

  1. Azure Storage Account
  2. App Insights
  3. ACA managed environment
  4. Azure Redis cache
  5. Azure Function App

Currently Azure Function sample has below dapr bindings and triggers.

  1. Dapr service invocation trigger
  2. Dapr invoke output binding
  3. Dapr state output binding
  4. Dapr state input binding

How to execute these Azure functions:

  1. Once you run the bicep, you will get Azure Function URL in the Azure Portal, copy the URL and replace it in the postman, also make sure to replace the function name in the url
  2. Now to create an entry in Redis, hit the Http Post call in Postman, this should return 200 OK
  3. Once entry is created in Redis, you can read the same data using Dapr state input binding. To do this, execute the Http get call, this should return the value you created in http post call.

azure-functions-dapr-aca-deployment's People

Contributors

ashiquemd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.