Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.devops_infrastructure.pools

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, poolNameGet a Pool
list_by_resource_groupselectsubscriptionId, resourceGroupNameList Pool resources by resource group
list_by_subscriptionselectsubscriptionIdList Pool resources by subscription ID
create_or_updateinsertsubscriptionId, resourceGroupName, poolNameCreate a Pool
updateupdatesubscriptionId, resourceGroupName, poolNameUpdate a Pool
deletedeletesubscriptionId, resourceGroupName, poolNameDelete a Pool

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
poolNamestringName of the pool. It needs to be globally unique.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a Pool

SELECT
identity,
location,
properties,
tags
FROM azure.devops_infrastructure.pools
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND poolName = '{{ poolName }}' -- required
;

INSERT examples

Create a Pool

INSERT INTO azure.devops_infrastructure.pools (
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
poolName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ poolName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Update a Pool

UPDATE azure.devops_infrastructure.pools
SET
data__identity = '{{ identity }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND poolName = '{{ poolName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Delete a Pool

DELETE FROM azure.devops_infrastructure.pools
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND poolName = '{{ poolName }}' --required
;