Skip to content

The EventGrid Viewer Blazor application can be used to view Azure EventGrid messages in realtime using ASP.Net Core Blazor & SignalR.

License

Notifications You must be signed in to change notification settings

Azure-Samples/eventgrid-viewer-blazor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
page_type languages products description urlFragment
sample
csharp
aspnet
azure-event-grid
A modern Blazor application for viewing Azure EventGrid messages in real-time using ASP.NET Core Blazor and SignalR.
eventgrid-viewer-blazor

🌐 EventGrid Viewer Blazor

Build License: MIT .NET Azure

A modern, real-time Azure EventGrid message viewer built with ASP.NET Core Blazor and SignalR

overview diagram

πŸ“‹ Table of Contents

✨ Features

Building upon the ideas of azure-event-grid-viewer, this Blazor application offers:

  • βœ… Real-time Event Viewing - View Azure EventGrid messages as they arrive
  • βœ… JSON Formatting - Beautifully formatted and syntax-highlighted JSON
  • βœ… Copy to Clipboard - One-click copying of event data
  • βœ… Modern UI - Clean, responsive Blazor interface
  • βœ… SignalR Integration - Real-time updates without page refresh
  • πŸ”„ Entra ID Authentication - Coming Soon

πŸš€ Quick Start

Get up and running in under 2 minutes:

# 1️⃣ Clone the repository
git clone https://github.com/Azure-Samples/eventgrid-viewer-blazor.git
cd eventgrid-viewer-blazor

# 2️⃣ Deploy to Azure (one command!)
azd auth login
azd up

πŸŽ‰ That's it! Your EventGrid viewer will be deployed and ready to use.

πŸ”§ Prerequisites

Before you begin, ensure you have:

πŸ“¦ Deployment

🌟 Option 1: Azure Developer CLI (Recommended)

The fastest way to deploy with full Azure resource provisioning:

# Install azd if you haven't already
winget install microsoft.azd     # Windows
brew tap azure/azd && brew install azd  # macOS
curl -fsSL https://aka.ms/install-azd.sh | bash  # Linux

# Clone and deploy
git clone https://github.com/Azure-Samples/eventgrid-viewer-blazor.git
cd eventgrid-viewer-blazor
azd auth login
azd up

πŸ“– For detailed azd instructions, environment configuration, and troubleshooting, see README-azd.md.

πŸ”— Option 2: Deploy to Azure Button

Quick deployment using ARM template:

Deploy to Azure

Steps:

  1. βœ… Create or select a Resource Group
  2. βœ… Enter a unique Site Name
  3. βœ… Enter a Hosting Plan Name
  4. βœ… Click Review + Create to deploy

πŸ“Έ Screenshots

eventgrid-viewer-blazor Screenshot

🎯 Usage

Setting up EventGrid Subscription

Once deployed, use your webhook endpoint to subscribe to EventGrid events:

https://{{your-site-name}}.azurewebsites.net/api/eventgrid

πŸ“š Learn more: Subscribe to EventGrid events

Local Development

πŸ”§ Click to expand local development setup
# Clone the repository
git clone https://github.com/Azure-Samples/eventgrid-viewer-blazor.git
cd eventgrid-viewer-blazor

# Restore packages
dotnet restore src/Blazor.EventGridViewer.sln

# Run the application
dotnet run --project src/Blazor.EventGridViewer.ServerApp

# Open browser to
# https://localhost:5001 (or the URL shown in terminal)

πŸ”’ Security

⚠️ Important: This application currently runs without authentication. For production use with sensitive data, consider implementing authentication controls.

Planned Security Features:

  • πŸ”„ Entra ID authentication integration
  • πŸ”„ Azure Key Vault for secrets management
  • πŸ”„ Managed Identity support

🀝 Contributing

We welcome contributions! Here's how you can help:

  • πŸ› Report bugs - Open an issue
  • πŸ’‘ Suggest features - Start a discussion
  • πŸ”§ Submit PRs - Fork, create feature branch, submit pull request

Development Stack

  • Frontend: Blazor Server (.NET 9.0)
  • Real-time: SignalR
  • Hosting: Azure App Service
  • Monitoring: Application Insights

⭐ If this project helped you, please give it a star!

Made with ❀️ by the Azure Samples team

About

The EventGrid Viewer Blazor application can be used to view Azure EventGrid messages in realtime using ASP.Net Core Blazor & SignalR.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •