Skip to main content

analyzers

Creates, updates, deletes, gets or lists an analyzers resource.

Overview

Nameanalyzers
TypeResource
Idazure.ai_content_understanding.analyzers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
analyzerIdstringThe unique identifier of the analyzer. Required.
baseAnalyzerIdstringThe analyzer to incrementally train from.
configobjectAnalyzer configuration settings.
createdAtstring (date-time)The date and time when the analyzer was created. Required.
descriptionstringA description of the analyzer.
dynamicFieldSchemabooleanIndicates whether the result may contain additional fields outside of the defined schema.
fieldSchemaobjectThe schema of fields to extracted.
knowledgeSourcesarrayAdditional knowledge sources used to enhance the analyzer.
lastModifiedAtstring (date-time)The date and time when the analyzer was last modified. Required.
modelsobjectMapping of model roles to specific model names. Ex. { "completion": "gpt-4.1", "embedding": "text-embedding-3-large" }.
processingLocationstringThe location where the data may be processed. Defaults to global. Known values are: "geography", "dataZone", and "global". (geography, dataZone, global)
statusstringThe status of the analyzer. Required. Known values are: "creating", "ready", "deleting", and "failed". (creating, ready, deleting, failed)
supportedModelsobjectChat completion and embedding models supported by the analyzer.
tagsobjectTags associated with the analyzer.
warningsarrayWarnings encountered while creating the analyzer.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_analyzerselectanalyzer_id, endpointGet analyzer properties.
list_analyzersselectendpointList analyzers.
create_analyzerinsertanalyzer_id, endpointallowReplaceCreate a new analyzer asynchronously.
update_analyzerupdateanalyzer_id, endpointUpdate analyzer properties.
delete_analyzerdeleteanalyzer_id, endpointDelete analyzer.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
analyzer_idstringThe unique identifier of the analyzer. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
allowReplacebooleanAllow the operation to replace an existing resource. Default value is None.

SELECT examples

Get analyzer properties.

SELECT
analyzerId,
baseAnalyzerId,
config,
createdAt,
description,
dynamicFieldSchema,
fieldSchema,
knowledgeSources,
lastModifiedAt,
models,
processingLocation,
status,
supportedModels,
tags,
warnings
FROM azure.ai_content_understanding.analyzers
WHERE analyzer_id = '{{ analyzer_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create a new analyzer asynchronously.

INSERT INTO azure.ai_content_understanding.analyzers (
description,
tags,
baseAnalyzerId,
config,
fieldSchema,
dynamicFieldSchema,
processingLocation,
knowledgeSources,
models,
analyzer_id,
endpoint,
allowReplace
)
SELECT
'{{ description }}',
'{{ tags }}',
'{{ baseAnalyzerId }}',
'{{ config }}',
'{{ fieldSchema }}',
{{ dynamicFieldSchema }},
'{{ processingLocation }}',
'{{ knowledgeSources }}',
'{{ models }}',
'{{ analyzer_id }}',
'{{ endpoint }}',
'{{ allowReplace }}'
RETURNING
analyzerId,
baseAnalyzerId,
config,
createdAt,
description,
dynamicFieldSchema,
fieldSchema,
knowledgeSources,
lastModifiedAt,
models,
processingLocation,
status,
supportedModels,
tags,
warnings
;

UPDATE examples

Update analyzer properties.

UPDATE azure.ai_content_understanding.analyzers
SET
description = '{{ description }}',
tags = '{{ tags }}',
baseAnalyzerId = '{{ baseAnalyzerId }}',
config = '{{ config }}',
fieldSchema = '{{ fieldSchema }}',
dynamicFieldSchema = {{ dynamicFieldSchema }},
processingLocation = '{{ processingLocation }}',
knowledgeSources = '{{ knowledgeSources }}',
models = '{{ models }}'
WHERE
analyzer_id = '{{ analyzer_id }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
analyzerId,
baseAnalyzerId,
config,
createdAt,
description,
dynamicFieldSchema,
fieldSchema,
knowledgeSources,
lastModifiedAt,
models,
processingLocation,
status,
supportedModels,
tags,
warnings;

DELETE examples

Delete analyzer.

DELETE FROM azure.ai_content_understanding.analyzers
WHERE analyzer_id = '{{ analyzer_id }}' --required
AND endpoint = '{{ endpoint }}' --required
;