Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.devops_infrastructure.pools

Fields

NameDatatypeDescription
agent_profiletextfield from the properties object
dev_center_project_resource_idtextfield from the properties object
fabric_profiletextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
maximum_concurrencytextfield from the properties object
organization_profiletextfield from the properties object
poolNametextfield 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
getSELECTpoolName, resourceGroupName, subscriptionIdGet a Pool
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Pool resources by resource group
list_by_subscriptionSELECTsubscriptionIdList Pool resources by subscription ID
create_or_updateINSERTpoolName, resourceGroupName, subscriptionIdCreate a Pool
deleteDELETEpoolName, resourceGroupName, subscriptionIdDelete a Pool
updateUPDATEpoolName, resourceGroupName, subscriptionIdUpdate a Pool

SELECT examples

List Pool resources by subscription ID

SELECT
agent_profile,
dev_center_project_resource_id,
fabric_profile,
identity,
location,
maximum_concurrency,
organization_profile,
poolName,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.devops_infrastructure.vw_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.devops_infrastructure.pools (
poolName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a pools resource.

/*+ update */
UPDATE azure.devops_infrastructure.pools
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified pools resource.

/*+ delete */
DELETE FROM azure.devops_infrastructure.pools
WHERE poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';