Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.dev_center.pools

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectPool properties
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a machine pool
list_by_projectselectLists pools for a project
create_or_updateinsertCreates or updates a machine pool
updateupdatePartially updates a machine pool
deletedeleteDeletes a machine pool
run_health_checksexecsubscriptionId, resourceGroupName, projectName, poolNameTriggers a refresh of the pool status.

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.
projectNamestringThe name of the project.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets a machine pool

SELECT
location,
properties,
tags
FROM azure.dev_center.pools
;

INSERT examples

Creates or updates a machine pool

INSERT INTO azure.dev_center.pools (
data__tags,
data__location,
data__properties
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
RETURNING
location,
properties,
tags
;

UPDATE examples

Partially updates a machine pool

UPDATE azure.dev_center.pools
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__properties = '{{ properties }}'
RETURNING
location,
properties,
tags;

DELETE examples

Deletes a machine pool

DELETE FROM azure.dev_center.pools
;

Lifecycle Methods

Triggers a refresh of the pool status.

EXEC azure.dev_center.pools.run_health_checks 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@projectName='{{ projectName }}' --required,
@poolName='{{ poolName }}' --required
;