Skill 3.1.3
Choose an embedding maintenance method, including table triggers, Change Tracking, Azure Functions with SQL trigger binding, Azure Logic Apps, CDC, and Microsoft Foundry
Key Concepts
A table trigger reacts in the same transaction, but calling a model synchronously there slows writes and fails the insert when the model is unavailable, so a trigger should only mark rows as stale or queue their keys for a background job. Change Tracking lets a scheduled job or service read the keys changed since its last version and re-embed those rows, with little overhead. CDC adds before and after values, useful when only changes to the embedded columns should trigger work.
Azure Functions with the SQL trigger binding runs serverless code for each batch of changed rows (it relies on Change Tracking) and can call the model and write embeddings back. Azure Logic Apps offers low-code polling workflows with the SQL connector. Microsoft Foundry hosts the embedding deployments that every method calls, and an application or agent built with Foundry can generate embeddings in its own write path or pipeline. Bulk re-embedding after a model change is a separate batch job.