Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.ai_language.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
assignedResourcesarrayRepresents the metadata of the assigned Azure resources. Required.
deploymentExpirationDatestring (date)Represents deployment expiration date in the runtime. Required.
deploymentNamestringRepresents deployment name. Required.
lastDeployedDateTimestring (date-time)Represents deployment last deployed time. Required.
lastTrainedDateTimestring (date-time)Represents deployment last trained time. Required.
modelIdstringRepresents deployment modelId. Required.
modelTrainingConfigVersionstringRepresents model training config version. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_deploymentsselectproject_name, endpointtop, skip, maxpagesizeList all deployments of a project.

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: )
project_namestringName of the project. Required.
maxpagesizeinteger
skipintegerAn offset into the collection of the first resource to be returned. Default value is None.
topintegerThe maximum number of resources to return from the collection. Default value is None.

SELECT examples

List all deployments of a project.

SELECT
assignedResources,
deploymentExpirationDate,
deploymentName,
lastDeployedDateTime,
lastTrainedDateTime,
modelId,
modelTrainingConfigVersion
FROM azure.ai_language.deployments
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND maxpagesize = '{{ maxpagesize }}'
;