| page_type | languages | products | description | urlFragment | |||
|---|---|---|---|---|---|---|---|
sample |
|
|
A modern Blazor application for viewing Azure EventGrid messages in real-time using ASP.NET Core Blazor and SignalR. |
eventgrid-viewer-blazor |
A modern, real-time Azure EventGrid message viewer built with ASP.NET Core Blazor and SignalR
- β¨ Features
- π Quick Start
- π§ Prerequisites
- π¦ Deployment
- πΈ Screenshots
- π― Usage
- π Security
- π€ Contributing
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
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.
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
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.
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
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
π§ 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)
β οΈ 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
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
- 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
