Skip to content

SQL Trigger does not work when deployed to Flex Consumption #1184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shibayan opened this issue May 21, 2025 · 2 comments
Open

SQL Trigger does not work when deployed to Flex Consumption #1184

shibayan opened this issue May 21, 2025 · 2 comments
Labels
bug Something isn't working trigger

Comments

@shibayan
Copy link

  • Azure Functions SQL Extension or Extension Bundle Version: 3.1.490
  • Is this a deployed or local function: deployed
  • What type of Database are you using? (Run SELECT @@VERSION as Version, SERVERPROPERTY('EngineEdition') as EngineEdition on your database): Microsoft SQL Azure (RTM) - 12.0.2000.8 Apr 9 2025 07:13:50 Copyright (C) 2024 Microsoft Corporation | 5
  • List any custom settings for your function app. This could be a custom time-out defined specifically for your database server or optional configuration that can be customized for the app defined here.: none

Steps to Reproduce:

  1. Create new sql trigger function from Visual Studio
  2. Deploy to Flex Consumption
  3. Modify the data in the target table
  4. SqlTrigger function not triggered

I deployed a Function App that implements SqlTrigger to Flex Consumption and SqlTrigger is not triggered on table changes. I have confirmed that it works correctly when running Consumption or locally, but only does not work when deployed to Flex Consumption.

When deployed to Flex Consumption, lease-related tables were not automatically created. This is a possible cause of this issue.

@shibayan
Copy link
Author

Additional checks show that for Flex Consumption, it works if the Function name that implements SQL Trigger is all lowercase. This is a rather strange behavior.

@VasuBhog VasuBhog added bug Something isn't working trigger labels May 27, 2025
@Azure Azure deleted a comment from github-actions bot May 30, 2025
@MaddyDev
Copy link
Contributor

MaddyDev commented Jun 4, 2025

Additional checks show that for Flex Consumption, it works if the Function name that implements SQL Trigger is all lowercase. This is a rather strange behavior.

Is this an existing function that you were trying to deploy using Flex or a new one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working trigger
Projects
None yet
Development

No branches or pull requests

3 participants