Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.dev_center.projects

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
identityobjectManaged identity properties
locationstringThe geo-location where the resource lives
propertiesobjectProperties of a project.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, projectNameGets a specific project.
get_inherited_settingsselectsubscriptionId, resourceGroupName, projectNameGets applicable inherited settings for this project.
list_by_resource_groupselectsubscriptionId, resourceGroupName$topLists all projects in the resource group.
list_by_subscriptionselectsubscriptionId$topLists all projects in the subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, projectNameCreates or updates a project.
updateupdatesubscriptionId, resourceGroupName, projectNamePartially updates a project.
deletedeletesubscriptionId, resourceGroupName, projectNameDeletes a project resource.

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
projectNamestringThe name of the project.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
$topinteger (int32)The maximum number of resources to return from the operation. Example: '$top=10'.

SELECT examples

Gets a specific project.

SELECT
identity,
location,
properties,
tags
FROM azure.dev_center.projects
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND projectName = '{{ projectName }}' -- required
;

INSERT examples

Creates or updates a project.

INSERT INTO azure.dev_center.projects (
data__tags,
data__location,
data__properties,
data__identity,
subscriptionId,
resourceGroupName,
projectName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ projectName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Partially updates a project.

UPDATE azure.dev_center.projects
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND projectName = '{{ projectName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Deletes a project resource.

DELETE FROM azure.dev_center.projects
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND projectName = '{{ projectName }}' --required
;