๐ŸŒ EventGrid Viewer Blazor

May 29, 2026 ยท View on GitHub

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

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