Skip to content

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

Open
@shibayan

Description

@shibayan
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtrigger

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions