Giter Club home page Giter Club logo

servicebus-dotnet-functionapp's Introduction

C# Function Application with Azure Service Bus

Open in Remote - Containers

This template includes everything you need to build, deploy, and monitor an Azure solution that both adds messages to and reacts to messages on an Azure Service Bus queue using Azure Function Apps and the native bindings for Service Bus. It includes application code, that serve as a foundation from which you can build upon and customize when creating your own solution.

Let's jump in and get the apps up and running in Azure. When you are finished, you will have a fully functional Service Bus queue with accompanying Function apps deployed on Azure.

Prerequisites

The following prerequisites are required to use this application. Please ensure that you have them all installed locally.

Architecture

graph TB
    subgraph Function Apps
    timer(Timer Trigger)
    sbTrigger
    
    end

    subgraph ServiceBus
    sb(Queue)
    timer-->|Every minute, write message|sb
    sb-->|On message add|sbTrigger(Queue Trigger)

    end

    subgraph Logging
    ai(App Insights)
    la(Log Analytics workspace)
    ai-->la   
    timer-->ai
        sbTrigger-->ai
    end

Quickstart

The fastest way for you to get this application up and running on Azure is to use the azd up command. This single command will create and configure all necessary Azure resources.

Run the following commands to initialize the project, provision Azure resources, and deploy the application code.

#download the repo assets from GitHub and initialize azd locally
azd init -t Gordonby/servicebus-dotnet-functionapp

#login to azure
azd auth login

#create the app in azure
azd up

You will be prompted for the following information:

  • Environment Name: This will be used as a prefix for all your Azure resources, make sure it is globally unique and under 15 characters.
  • Azure Subscription: The Azure Subscription where your resources will be deployed.
  • Azure Location: The Azure location where your resources will be deployed

servicebus-dotnet-functionapp's People

Contributors

jongio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

servicebus-dotnet-functionapp's Issues

Message Button

Message button that automatically sends messages to the service bus once clicked.

Refactor functionapp into 2 function apps.

It'd be good to split the functionapp into 2 for both the send and receive scenario.
This will more clearly show the functionapps being able to independently scale, whilst leveraging the same App Insights / Service Bus resource.

Updating/work-with this template for GHA and Azd Devcontainer feature.

We are updating this template to support new features in Github Action and Azd Devcontainer.

  1. For the Github Action feature: We will remove two lines of code on container image and add GHA code after checkout step in the .github/workflow/azure-dev.yml file. (Shown as below)
image
  1. For the Azd Devcontainer feature: We will add the following code in devcontainer.json file.
"ghcr.io/azure/azure-dev/azd:latest": {}

And remove the relevant code for installing azd in Dockerfile under .devcontainer folder.

RUN curl -fsSL https://aka.ms/install-azd.sh | bash \

@rajeshkamal5050 , @Gordonby for notification.

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.