Why is this happening and how do I get around it?
Issue:
Deploying Event Subscription: my-eventgrid-sub-name
Deployment has failed with the following error:
{
code:"Endpoint validation",
message:"Destination azure endpoint not found,
Resource details: resourceId:/subscriptions/<redacted>/resourceGroups/<redacted>/providers/Microsoft.Web/sites/myFunctionAppName/functions/myFunctionName.
Resource should pre-exist before attempting this operation,
Activity id:7e9c4817-5bbd-4772-a7b0-a4dbc70dbf04,
timestamp: 10/24/2020 7:01:39 PM (UTC)."
}
Of course myFucnctionName
exists. Its existed and been operational for weeks now. It seems like EventGrid can't "see" the Function.
EDIT 1:
As the error message - Resource should pre-exist before attempting this operation
says, there are two potential causes to this error: