Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Gordonby/servicebus-dotnet-functionapp
Provides an azd template for using Function Apps with Service Bus using native bindings. Get started with service bus and functions, faster!
https://github.com/Gordonby/servicebus-dotnet-functionapp
azd-templates azure azure-function-app service-bus
Last synced: 3 months ago
JSON representation
Provides an azd template for using Function Apps with Service Bus using native bindings. Get started with service bus and functions, faster!
- Host: GitHub
- URL: https://github.com/Gordonby/servicebus-dotnet-functionapp
- Owner: Gordonby
- Created: 2022-06-14T09:33:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-08T19:40:22.000Z (4 months ago)
- Last Synced: 2024-09-08T21:07:23.545Z (4 months ago)
- Topics: azd-templates, azure, azure-function-app, service-bus
- Language: Bicep
- Homepage:
- Size: 56.6 KB
- Stars: 17
- Watchers: 0
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C# Function Application with Azure Service Bus
[![Open in Remote - Containers](https://img.shields.io/static/v1?label=Remote%20-%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/Gordonby/azd-template-servicebus-dotnet-functionapp)
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.
- [Azure Developer CLI](https://aka.ms/azure-dev/install)
- Windows:
```powershell
powershell -c "Set-ExecutionPolicy Bypass Process -Force; irm 'https://aka.ms/install-azd.ps1' | iex"
```
- Linux/MacOS:
```
curl -fsSL https://aka.ms/install-azd.sh | bash
```
- [Azure CLI (2.37.0+)](https://docs.microsoft.com/cli/azure/install-azure-cli)
- [DotNet 6](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- VSCode
- Functions Runtime
- [Git (2.36.1+)](https://git-scm.com/)### Architecture
```mermaid
graph TB
subgraph Function Apps
timer(Timer Trigger)
sbTrigger
endsubgraph 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.
```bash
#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