Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure_extras.visual_studio.projects

Fields

NameDatatypeDescription
idstringUnique identifier of the resource.
namestringResource name.
locationstringResource location.
propertiesobjectKey/value pair of resource properties.
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, rootResourceName, subscriptionIdGets the details of a Team Services project resource.
list_by_resource_groupSELECTresourceGroupName, rootResourceName, subscriptionIdGets all Visual Studio Team Services project resources created in the specified Team Services account.
createINSERTresourceGroupName, resourceName, rootResourceName, subscriptionIdCreates a Team Services project in the collection with the specified name. 'VersionControlOption' and 'ProcessTemplateId' must be specified in the resource properties. Valid values for VersionControlOption: Git, Tfvc. Valid values for ProcessTemplateId: 6B724908-EF14-45CF-84F8-768B5384DA45, ADCC42AB-9882-485E-A3ED-7678F01F66BC, 27450541-8E31-4150-9947-DC59F998FC01 (these IDs correspond to Scrum, Agile, and CMMI process templates).
updateUPDATEresourceGroupName, resourceName, rootResourceName, subscriptionIdUpdates the tags of the specified Team Services project.

SELECT examples

Gets all Visual Studio Team Services project resources created in the specified Team Services account.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_extras.visual_studio.projects
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND rootResourceName = '{{ rootResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.visual_studio.projects (
resourceGroupName,
resourceName,
rootResourceName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ rootResourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a projects resource.

/*+ update */
UPDATE azure_extras.visual_studio.projects
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND rootResourceName = '{{ rootResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';