Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.cognitive_services.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringThe description of the Cognitive Services Project.
displayNamestringThe display name of the Cognitive Services Project.
endpointsobjectThe list of endpoint for this Cognitive Services Project.
etagstringResource Etag.
identityobjectIdentity for the resource.
isDefaultbooleanIndicates whether the project is the default project for the account.
locationstringThe geo-location where the resource lives.
provisioningStatestringGets the status of the cognitive services project at the time the operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", and "ResolvingDNS". (Accepted, Creating, Deleting, Moving, Failed, Succeeded, Canceled, ResolvingDNS)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, project_name, subscription_idReturns a Cognitive Services project specified by the parameters.
listselectresource_group_name, account_name, subscription_idReturns all the projects in a Cognitive Services account.
createinsertresource_group_name, account_name, project_name, subscription_idCreate Cognitive Services Account's Project. Project is a sub-resource of an account which give AI developer it's individual container to work on.
updateupdateresource_group_name, account_name, project_name, subscription_idUpdates a Cognitive Services Project.
deletedeleteresource_group_name, account_name, project_name, subscription_idDeletes a Cognitive Services project from the resource group.

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
account_namestringThe name of Cognitive Services account. Required.
project_namestringThe name of Cognitive Services account's project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Returns a Cognitive Services project specified by the parameters.

SELECT
id,
name,
description,
displayName,
endpoints,
etag,
identity,
isDefault,
location,
provisioningState,
systemData,
tags,
type
FROM azure.cognitive_services.projects
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI developer it's individual container to work on.

INSERT INTO azure.cognitive_services.projects (
properties,
tags,
location,
identity,
resource_group_name,
account_name,
project_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ project_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a Cognitive Services Project.

UPDATE azure.cognitive_services.projects
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Cognitive Services project from the resource group.

DELETE FROM azure.cognitive_services.projects
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND project_name = '{{ project_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;