Azure / Azure/azure-rest-api-specs

[FEATURE REQ]Add EventGrid AzureFunction Endpoint Support for Container Apps with Native Functions

Open
#36,486 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 21h
Merged PRs (30d)
432

Description

API Spec link

https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2025-04-01-preview /examples/EventSubscriptions_CreateOrUpdateForCustomTopic_AzureFunctionDestination.json

API Spec version

2025-04-01

Please describe the feature.

Description:

Current Situation:
Azure Container Apps now supports native Azure Functions (announced in
https://techcommunity.microsoft.com/blog/appsonazureblog/announcing-native-azure-functions-support-in-azure-container-apps/4414039) with kind: functionapp.
However, EventGrid's AzureFunction endpoint type does not recognize Container Apps as valid Azure Function resources.

Problem:
When attempting to create an EventGrid subscription with an AzureFunction endpoint type pointing to a Container App with native Functions support, the
deployment fails with "Invalid ARM Id" error.

Technical Details:

  • Container App with kind: functionapp is properly configured and running Functions
  • KEDA scaling rules are successfully configured for the Function App
  • Functions runtime environment variables are set correctly
  • EventGrid only accepts resource IDs in format: /subscriptions/.../providers/Microsoft.Web/sites/{site}/functions/{function}
  • Container Apps use format: /subscriptions/.../providers/Microsoft.App/containerApps/{app}
  • Even the latest preview API version (2025-04-01-preview) doesn't support Container Apps

Expected Behavior:
EventGrid should accept Container App resource IDs when the Container App has kind: functionapp set, allowing:
/subscriptions/{subscription}/resourceGroups/{rg}/providers/Microsoft.App/containerApps/{containerApp}/functions/{functionName}

Business Impact:

  • Cannot use EventGrid triggers with Container Apps native Functions
  • Forces workarounds like manual webhook validation
  • Prevents full adoption of Container Apps for Functions workloads
  • Creates feature parity gap between traditional Functions and Container Apps Functions

Reproduction Steps:

  1. Create Container App with kind: functionapp
  2. Deploy Function code with EventGrid trigger
  3. Attempt to create EventGrid subscription with AzureFunction endpoint type
  4. Receive "Invalid ARM Id" error

Workaround:
Currently must use webhook endpoint type with manual validation handling, which adds complexity and maintenance overhead.

Requested Feature:
Update EventGrid service to recognize and validate Container Apps with kind: functionapp as valid AzureFunction endpoints.

Priority: High - This blocks a key integration scenario for the new native Functions support in Container Apps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked EventGrid 2025-04-01-preview API specification and its AzureFunction destination example. Compare the documented AzureFunction resource ID validation with the requested Microsoft.App containerApps form and kind: functionapp behavior. Done means EventGrid accepts the specified Container App function resource ID and the deployment no longer returns Invalid ARM Id.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.