Unable to Subscribe to EventGrid Domain using C# Function App

Aaron Joseph 11 Reputation points
2022-08-17T15:42:15.997+00:00

I am trying to subscribe a function in an isolated function app to an event grid domain and am receiving the following error:

{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceOperationFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"Endpoint validation\",\"message\":\"Destination endpoint not found. Resource details: #######. Resource should pre-exist before attempting this operation. Activity id:884b1adf-58de-48e7-999a-ebe4dc4b3f01, timestamp: 8/17/2022 2:34:37 PM (UTC).\"}]}}",

This error is occurring both when trying to add the subscription using the Fluent SDK and via the Azure web portal.

I have verified that the function app is running and that the function is visible.

Any help would be appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,932 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
456 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vincent Nyanga 26 Reputation points
    2022-09-09T17:48:23.067+00:00

    I'm also getting the same error.

    0 comments No comments

  2. James Jackson 1 Reputation point
    2022-09-11T13:56:52.1+00:00

    Can confirm I am also seeing this issue, either when creating the Event Subscription via Portal or through Terraform.

    Occurs when the Topic is assigned a Managed Identity with Contributor access over the Resource Group, and Storage Queue Data Contributor and Storage Queue Data Message Sender roles over the target Storage Account.

    Please advise if you would like any followup information.


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.