Add EventGridSystemTopicEventSubscription with deadletter not working with powershell
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