Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.dev_center.pools

Fields

NameDatatypeDescription
dev_box_counttextfield from the properties object
dev_box_definitiontextfield from the properties object
dev_box_definition_nametextfield from the properties object
dev_box_definition_typetextfield from the properties object
display_nametextfield from the properties object
health_statustextfield from the properties object
health_status_detailstextfield from the properties object
license_typetextfield from the properties object
local_administratortextfield from the properties object
locationtextThe geo-location where the resource lives
managed_virtual_network_regionstextfield from the properties object
network_connection_nametextfield from the properties object
poolNametextfield from the properties object
projectNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
single_sign_on_statustextfield from the properties object
stop_on_disconnecttextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtual_network_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpoolName, projectName, resourceGroupName, subscriptionIdGets a machine pool
list_by_projectSELECTprojectName, resourceGroupName, subscriptionIdLists pools for a project
create_or_updateINSERTpoolName, projectName, resourceGroupName, subscriptionIdCreates or updates a machine pool
deleteDELETEpoolName, projectName, resourceGroupName, subscriptionIdDeletes a machine pool
updateUPDATEpoolName, projectName, resourceGroupName, subscriptionIdPartially updates a machine pool
run_health_checksEXECpoolName, projectName, resourceGroupName, subscriptionIdTriggers a refresh of the pool status.

SELECT examples

Lists pools for a project

SELECT
dev_box_count,
dev_box_definition,
dev_box_definition_name,
dev_box_definition_type,
display_name,
health_status,
health_status_details,
license_type,
local_administrator,
location,
managed_virtual_network_regions,
network_connection_name,
poolName,
projectName,
provisioning_state,
resourceGroupName,
single_sign_on_status,
stop_on_disconnect,
subscriptionId,
tags,
virtual_network_type
FROM azure.dev_center.vw_pools
WHERE projectName = '{{ projectName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a pools resource.

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

DELETE example

Deletes the specified pools resource.

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