embeddings-and-external-models

Installation
SKILL.md

Embeddings and external models in Azure SQL Database

How the engine itself produces a vector, and how it is allowed to reach a model. Unless a line names one engine, what follows holds on both Azure SQL Database at compatibility level 170 and the Azure SQL Database container.

AI_GENERATE_CHUNKS splits text and CREATE EXTERNAL MODEL registers an endpoint; neither touches the network. AI_GENERATE_EMBEDDINGS and sp_invoke_external_rest_endpoint, the call it builds on, both do, and that is where everything below goes wrong. All four work in the container as well as in the cloud: this surface is not cloud only, and an embedding call to Azure OpenAI completes from inside a container.

The correction

CREATE EXTERNAL MODEL validates almost nothing. On both engines the DDL accepts an http:// location, a host no allowlist permits, a credential whose name can never match, and a deployment that does not exist. All of it succeeds and appears in sys.external_models. Each failure surfaces at the first AI_GENERATE_EMBEDDINGS, naming an object rather than the broken rule:

Installs
50
GitHub Stars
66
First Seen
Sep 28, 2026