Skip to main content

connections

Creates, updates, deletes, gets or lists a connections resource.

Overview

Nameconnections
TypeResource
Idazure.ai_evaluation.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringA unique identifier for the connection, generated by the service. Required.
namestringThe friendly name of the connection, provided by the user. Required.
credentialsobjectThe credentials used by the connection. Required.
isDefaultbooleanWhether the connection is tagged as the default connection of its type. Required.
metadataobjectMetadata of the connection. Required.
targetstringThe connection URL to be used for this service. Required.
typestringCategory of the connection. Required. Known values are: "AzureOpenAI", "AzureBlob", "AzureStorageAccount", "CognitiveSearch", "CosmosDB", "ApiKey", "AppConfig", "AppInsights", and "CustomKeys". (AzureOpenAI, AzureBlob, AzureStorageAccount, CognitiveSearch, CosmosDB, ApiKey, AppConfig, AppInsights, CustomKeys)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, endpointGet a connection by name, without populating connection credentials.
listselectendpointconnectionType, defaultConnectionList all connections in the project, without populating connection credentials.
get_with_credentialsexecname, endpointGet a connection by name, with its connection credentials.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringThe friendly name of the connection, provided by the user. Required.
connectionTypestringList connections of this specific type. Known values are: "AzureOpenAI", "AzureBlob", "AzureStorageAccount", "CognitiveSearch", "CosmosDB", "ApiKey", "AppConfig", "AppInsights", and "CustomKeys". Default value is None.
defaultConnectionbooleanList connections that are default connections. Default value is None.

SELECT examples

Get a connection by name, without populating connection credentials.

SELECT
id,
name,
credentials,
isDefault,
metadata,
target,
type
FROM azure.ai_evaluation.connections
WHERE name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Get a connection by name, with its connection credentials.

EXEC azure.ai_evaluation.connections.get_with_credentials 
@name='{{ name }}' --required,
@endpoint='{{ endpoint }}' --required
;