Skip to content

Provides an azd template for using Function Apps with Service Bus using native bindings. Get started with service bus and functions, faster!

Notifications You must be signed in to change notification settings

Gordonby/servicebus-dotnet-functionapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Loading

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

About

Provides an azd template for using Function Apps with Service Bus using native bindings. Get started with service bus and functions, faster!

Topics

Resources

Stars

Watchers

Forks