azure-eventgrid-dotnet

Publish and consume Azure Event Grid events from .NET services.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-eventgrid-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-eventgrid-dotnet
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-eventgrid-dotnet
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-eventgrid-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill documents how .NET applications can reliably publish, receive, and process Azure Event Grid events, removing uncertainty around authentication, schema selection, batching, and error handling so developers can implement event-driven integrations faster.

Core Features & Use Cases

  • Push and Pull Delivery: Examples for topics/domains (EventGridPublisherClient) and namespaces (EventGridSenderClient/EventGridReceiverClient).
  • Schema Support: Demonstrates both EventGridEvent and CloudEvent schemas and how to serialize/parse them.
  • Authentication & Resilience: Shows API key, SAS, and Azure AD credential usage, batch publishing, idempotent handlers, error handling for RequestFailedException, failover to secondary regions, and dead-letter patterns.
  • Use Case: Send batched order events from an e-commerce service to multiple downstream subscribers, process namespace pull-delivery in background workers, and surface failures to a dead-letter pipeline.

Quick Start

Publish a batch of CloudEvents from your .NET service to the topic endpoint using DefaultAzureCredential for authentication.

Frequently Asked Questions about azure-eventgrid-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish Azure Event Grid events from a .NET service?

To publish Azure Event Grid events in .NET, use EventGridPublisherClient to send batched EventGridEvent or CloudEvent schemas to a topic endpoint, authenticating with API keys, SAS, or Azure AD credentials like DefaultAzureCredential.

What is the difference between push and pull delivery in Azure Event Grid namespaces?

Azure Event Grid namespaces support both push delivery via EventGridPublisherClient for topics and domains, and pull delivery via EventGridReceiverClient for background workers, allowing flexible event-driven messaging consumption patterns in .NET applications.

How do I handle Azure Event Grid errors and retries in .NET?

Handle Azure Event Grid errors in .NET by catching RequestFailedException, implementing idempotent event handlers, configuring dead-letter pipelines for failed messages, and setting up failover to secondary regions for resilient event processing workflows.

Can I use CloudEvents schema with Azure Event Grid in .NET?

Yes, Azure Event Grid supports the CloudEvents schema alongside the native EventGridEvent schema in .NET. You can serialize, parse, and publish CloudEvents using the EventGridPublisherClient for standardized event-driven messaging.

Does Azure Event Grid support batch publishing in .NET?

Azure Event Grid supports batch publishing in .NET through the EventGridPublisherClient, allowing you to send multiple events in a single request to improve throughput for high-volume event-driven integration pipelines.

How do I authenticate to Azure Event Grid using Azure AD in .NET?

Authenticate to Azure Event Grid using Azure AD in .NET by leveraging DefaultAzureCredential or specific token credentials instead of API keys, providing managed identity support and secure access for publishing and consuming events.