I'm also getting the same error.
Unable to Subscribe to EventGrid Domain using C# Function App
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 Event Grid
2 answers
Sort by: Most helpful
-
-
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.