๐ EventGrid Viewer Blazor
May 29, 2026 ยท View on GitHub
A modern, real-time Azure EventGrid message viewer built with ASP.NET Core Blazor and SignalR
๐ Table of Contents
- โจ Features
- ๐ Quick Start
- ๐ง Prerequisites
- ๐ฆ Deployment
- ๐ธ Screenshots
- ๐ฏ Usage
- ๐ Security
- ๐ค Contributing
โจ 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:
- Azure Subscription - Get a free account
- Azure Developer CLI - Install azd
- .NET 9.0 SDK - Download here (for local development)
- Modern Browser - Chrome, Firefox, Safari, or Edge
๐ฆ 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:
Steps:
- โ Create or select a Resource Group
- โ Enter a unique Site Name
- โ Enter a Hosting Plan Name
- โ Click Review + Create to deploy
๐ธ Screenshots

๐ฏ 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