Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure.dev_center.projects

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
catalog_settingstextfield from the properties object
dev_center_idtextfield from the properties object
dev_center_uritextfield from the properties object
display_nametextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
max_dev_boxes_per_usertextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTprojectName, resourceGroupName, subscriptionIdGets a specific project.
get_inherited_settingsSELECTprojectName, resourceGroupName, subscriptionIdGets applicable inherited settings for this project.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all projects in the resource group.
list_by_subscriptionSELECTsubscriptionIdLists all projects in the subscription.
create_or_updateINSERTprojectName, resourceGroupName, subscriptionIdCreates or updates a project.
deleteDELETEprojectName, resourceGroupName, subscriptionIdDeletes a project resource.
updateUPDATEprojectName, resourceGroupName, subscriptionIdPartially updates a project.

SELECT examples

Lists all projects in the subscription.

SELECT
description,
catalog_settings,
dev_center_id,
dev_center_uri,
display_name,
identity,
location,
max_dev_boxes_per_user,
projectName,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.dev_center.vw_projects
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new projects resource.

/*+ create */
INSERT INTO azure.dev_center.projects (
projectName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a projects resource.

/*+ update */
UPDATE azure.dev_center.projects
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified projects resource.

/*+ delete */
DELETE FROM azure.dev_center.projects
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';