I am currently doing POC to explore SQL Server 2025 AI Feature in which I tried to set up Vector features. I am able to create scoped credential and external model but when I do the select statement it gives an error : here is the select state : SELECT AI_GENERATE_EMBEDDINGS(
'SQL Server 2025 embedding test' USE MODEL LogEmbeddingModel
); and query used as : CREATE DATABASE SCOPED CREDENTIAL cred_openai
WITH IDENTITY = 'AzureOpenAI',
SECRET = ''; model query : CREATE EXTERNAL MODEL LogEmbeddingModel
WITH (
LOCATION = 'https://azopencrtsqltst.openai.azure.com/',
API_FORMAT = 'OpenAI',
CREDENTIAL = cred_openai,
MODEL_TYPE = EMBEDDINGS,
MODEL = 'sql-embedding-model',
);
error message : Msg 31628, Level 16, State 1, Line 41
The database scoped credential 'cred_openai' has an invalid identity 'AzureOpenAI' for use with an external rest endpoint.