Skip to main content

project_catalogs

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

Overview

Nameproject_catalogs
TypeResource
Idazure.dev_center.project_catalogs

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
ado_gittextfield from the properties object
catalogNametextfield from the properties object
connection_statetextfield from the properties object
git_hubtextfield from the properties object
last_connection_timetextfield from the properties object
last_sync_statstextfield from the properties object
last_sync_timetextfield 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
sync_statetextfield from the properties object
sync_typetextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTcatalogName, projectName, resourceGroupName, subscriptionIdGets an associated project catalog.
listSELECTprojectName, resourceGroupName, subscriptionIdLists the catalogs associated with a project.
create_or_updateINSERTcatalogName, projectName, resourceGroupName, subscriptionIdCreates or updates a project catalog.
deleteDELETEcatalogName, projectName, resourceGroupName, subscriptionIdDeletes a project catalog resource.
patchUPDATEcatalogName, projectName, resourceGroupName, subscriptionIdPartially updates a project catalog.
connectEXECcatalogName, projectName, resourceGroupName, subscriptionIdConnects a project catalog to enable syncing.
syncEXECcatalogName, projectName, resourceGroupName, subscriptionIdSyncs templates for a template source.

SELECT examples

Lists the catalogs associated with a project.

SELECT
id,
name,
ado_git,
catalogName,
connection_state,
git_hub,
last_connection_time,
last_sync_stats,
last_sync_time,
projectName,
provisioning_state,
resourceGroupName,
subscriptionId,
sync_state,
sync_type,
system_data,
tags,
type
FROM azure.dev_center.vw_project_catalogs
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.project_catalogs (
catalogName,
projectName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ catalogName }}',
'{{ projectName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a project_catalogs resource.

/*+ update */
UPDATE azure.dev_center.project_catalogs
SET
properties = '{{ properties }}'
WHERE
catalogName = '{{ catalogName }}'
AND projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified project_catalogs resource.

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