Skip to main content

project

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

Overview

Nameproject
TypeResource
Idazure.ai_language.project

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_assign_project_resources_statusselectjob_id, project_name, endpointGets the status of an existing assign project resources job.
list_trained_modelsselectproject_name, endpointtop, skip, maxpagesizeLists the trained models belonging to a project.
get_project_deletion_statusselectjob_id, endpointGets the status for a project deletion job.
list_training_jobsexecproject_name, endpointtop, skip, maxpagesizeLists the non-expired training jobs created for a project.
list_project_resourcesexecproject_name, endpointtop, skip, maxpagesizeLists the Language or AIService resources assigned to the project.
list_deploymentsexecproject_name, endpointtop, skip, maxpagesizeLists the deployments belonging to a project.
list_exported_modelsexecproject_name, endpointtop, skip, maxpagesizeLists the exported models belonging to a project.
get_unassign_project_resources_statusexecjob_id, project_name, endpointGets the status of an existing unassign project resources job.
get_swap_deployments_statusexecjob_id, project_name, endpointGets the status of an existing swap deployment job.
get_projectexecproject_name, endpointGets the details of a project.
get_export_statusexecjob_id, project_name, endpointGets the status of an export job. Once job completes, returns the project metadata, and assets.
get_copy_project_statusexecjob_id, project_name, endpointGets the status of an existing copy project job.
get_training_statusexecjob_id, project_name, endpointGets the status for a training job.
assign_project_resourcesexecproject_name, endpoint, projectResourcesAssign new Language or AIService Azure resources to a project to allowing deployment to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory _.
unassign_project_resourcesexecproject_name, endpointUnassign resources from a project. This disallows deployment to these resources.
swap_deploymentsexecproject_name, endpoint, firstDeploymentName, secondDeploymentNameSwaps two existing deployments with each other.
importexecproject_name, endpoint, projectFileVersion, stringIndexType, metadataformatTriggers a job to import a project. If a project with the same name already exists, the data of that project is replaced.
exportexecproject_name, stringIndexType, endpointformat, assetKind, trainedModelLabelTriggers a job to export a project's data.
copy_project_authorizationexecproject_name, endpointGenerates a copy project operation authorization to the current target Azure resource.
copy_projectexecproject_name, endpoint, projectKind, targetProjectName, accessToken, expiresAt, targetResourceId, targetResourceRegionCopies an existing project to another Azure resource.
trainexecproject_name, endpoint, modelLabel, trainingModeTriggers a training job for a project.
cancel_training_jobexecjob_id, project_name, endpointTriggers a cancellation for a running training job.

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: )
job_idstringThe job ID. Required.
project_namestring
stringIndexTypestringSpecifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets _. Known values are: "Utf16CodeUnit", "Utf8CodeUnit", and "Utf32CodeUnit". Required.
assetKindstringKind of asset to export. Default value is None.
formatstringThe format of the exported project file to use. Known values are: "Conversation" and "Luis". Default value is None.
maxpagesizeinteger
skipintegerThe number of result items to skip. Default value is None.
topintegerThe number of result items to return. Default value is None.
trainedModelLabelstringTrained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy. Default value is None.

SELECT examples

Gets the status of an existing assign project resources job.

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

Lifecycle Methods

Lists the non-expired training jobs created for a project.

EXEC azure.ai_language.project.list_training_jobs 
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required,
@top='{{ top }}',
@skip='{{ skip }}',
@maxpagesize='{{ maxpagesize }}'
;