Add EventGridSystemTopicEventSubscription with deadletter not working with powershell

Frederic 35 Reputation points
2024-12-12T11:24:19.0066667+00:00

I want to create an event subscription for a FunctionApp but can not find how to define the DeadletterEndpoint. My pipeline has Az module v12.5.0 installed.

 

The following code is working but how can I define the storage account container for deadletter?

 

$funcid = "/subscriptions/$funcSubID/resourceGroups/$func_rg/providers/Microsoft.Web/sites/$funcapp/functions/$func_name" $func_evdo = New-AzEventGridAzureFunctionEventSubscriptionDestinationObject -ResourceId $funcid

 

New-AzEventGridSystemTopicEventSubscription -ResourceGroupName $resourceGroupName `       -eventSubscriptionName $eventSubscriptionName `         -systemTopicName $systemTopicName `         -destination $func_evdo

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
406 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,704 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.