Skip to main content

deployment

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

Overview

Namedeployment
TypeResource
Idazure.ai_text_analytics_authoring.deployment

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
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.
delete_deployment_from_resourcesexecdeployment_name, project_name, endpointDeletes a project deployment from the specified 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: )
project_namestring

SELECT examples

Gets the details of a deployment.

SELECT
assignedResources,
deploymentExpirationDate,
deploymentName,
lastDeployedDateTime,
lastTrainedDateTime,
modelId,
modelTrainingConfigVersion
FROM azure.ai_text_analytics_authoring.deployment
WHERE deployment_name = '{{ deployment_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

DELETE examples

Deletes a project deployment.

DELETE FROM azure.ai_text_analytics_authoring.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_text_analytics_authoring.deployment.deploy_project 
@deployment_name='{{ deployment_name }}' --required,
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"trainedModelLabel": "{{ trainedModelLabel }}",
"assignedResourceIds": "{{ assignedResourceIds }}"
}'
;