Skip to main content

deployment

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

Overview

Namedeployment
TypeResource
Idazure.ai_language.deployment

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdDateTimestring (date-time)The creation date time of the job. Required.
errorsarrayThe errors encountered while executing the job.
expirationDateTimestring (date-time)The expiration date time of the job.
jobIdstringThe job ID. Required.
lastUpdatedDateTimestring (date-time)The last date time the job was updated. Required.
statusstringThe job status. Required. Known values are: "notStarted", "running", "succeeded", "failed", "cancelled", "cancelling", and "partiallyCompleted". (notStarted, running, succeeded, failed, cancelled, cancelling, partiallyCompleted)
warningsarrayThe warnings that were encountered while executing the job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_deployment_delete_from_resources_statusselectdeployment_name, job_id, project_name, endpointGets the status of an existing delete deployment from specific resources job.
get_deploymentselectdeployment_name, project_name, endpointGets the details of a deployment.
delete_deploymentdeletedeployment_name, project_name, endpointDeletes a project deployment.
deploy_projectexecdeployment_name, project_name, endpoint, trainedModelLabelCreates a new deployment or replaces an existing one.
get_deployment_statusexecdeployment_name, job_id, project_name, endpointGets the status of an existing deployment job.
delete_deployment_from_resourcesexecdeployment_name, project_name, endpointDeletes a deployment from the specified project-assigned resources.

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
deployment_namestringThe name of the specific deployment of the project to use. Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client Endpoint parameter. (default: )
job_idstringThe job ID. Required.
project_namestring

SELECT examples

Gets the status of an existing delete deployment from specific resources job.

SELECT
createdDateTime,
errors,
expirationDateTime,
jobId,
lastUpdatedDateTime,
status,
warnings
FROM azure.ai_language.deployment
WHERE deployment_name = '{{ deployment_name }}' -- required
AND job_id = '{{ job_id }}' -- required
AND project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Deletes a project deployment.

DELETE FROM azure.ai_language.deployment
WHERE deployment_name = '{{ deployment_name }}' --required
AND project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Creates a new deployment or replaces an existing one.

EXEC azure.ai_language.deployment.deploy_project 
@deployment_name='{{ deployment_name }}' --required,
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"trainedModelLabel": "{{ trainedModelLabel }}",
"azureResourceIds": "{{ azureResourceIds }}"
}'
;