Skip to main content

project

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

Overview

Nameproject
TypeResource
Idazure.ai_text_analytics_authoring.project

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
hasSnapshotbooleanThe flag to indicate if the trained model has a snapshot ready. Required.
labelstringThe trained model label. Required.
lastTrainedDateTimestring (date-time)The last trained date time of the model. Required.
lastTrainingDurationInSecondsintegerThe duration of the model's last training request in seconds. Required.
modelExpirationDatestring (date)The model expiration date. Required.
modelIdstringThe model ID. Required.
modelTrainingConfigVersionstringThe model training config version. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_trained_modelsselectproject_name, endpointtop, skip, maxpagesizeLists the trained models belonging to a project.
list_training_jobsexecproject_name, endpointtop, skip, maxpagesizeLists the non-expired training jobs created for a project.
list_deployment_resourcesexecproject_name, endpointtop, skip, maxpagesizeLists the deployments 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_projectexecproject_name, endpointGets the details of a project.
assign_deployment_resourcesexecproject_name, endpoint, resourcesMetadataAssign new Azure resources to a project to allow deploying new deployments 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_deployment_resourcesexecproject_name, endpoint, assignedResourceIdsUnassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them.
swap_deploymentsexecproject_name, endpoint, firstDeploymentName, secondDeploymentNameSwaps two existing deployments with each other.
exportexecproject_name, stringIndexType, endpointassetKind, trainedModelLabelTriggers a job to export a project's data.
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.
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, trainingConfigVersionTriggers 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 _. "Utf16CodeUnit" Required.
assetKindstringKind of asset to export. Default value is None.
formatstringThe format of the project to import. The currently supported formats are json and aml formats. If not provided, the default is set to json. 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

Lists the trained models belonging to a project.

SELECT
hasSnapshot,
label,
lastTrainedDateTime,
lastTrainingDurationInSeconds,
modelExpirationDate,
modelId,
modelTrainingConfigVersion
FROM azure.ai_text_analytics_authoring.project
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND maxpagesize = '{{ maxpagesize }}'
;

Lifecycle Methods

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

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