Skip to main content

pools

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

Overview

Namepools
TypeResource
Idazure.devcenter.pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
devBoxCountintegerIndicates the number of provisioned Dev Boxes in this pool.
devBoxDefinitionNamestringName of a Dev Box definition in parent Project of this Pool.
displayNamestringThe display name of the pool.
healthStatusstringOverall health status of the Pool. Indicates whether or not the Pool is available to create Dev Boxes. Known values are: "Unknown", "Pending", "Healthy", "Warning", and "Unhealthy".
healthStatusDetailsarrayDetails on the Pool health status to help diagnose issues. This is only populated when the pool status indicates the pool is in a non-healthy state.
licenseTypestringSpecifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created. "Windows_Client"
localAdministratorstringIndicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box. Known values are: "Disabled" and "Enabled".
locationstringThe geo-location where the resource lives. Required.
managedVirtualNetworkRegionsarrayThe regions of the managed virtual network (required when managedNetworkType is Managed).
networkConnectionNamestringName of a Network Connection in parent Project of this Pool.
provisioningStatestringThe provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed".
singleSignOnStatusstringIndicates whether Dev Boxes in this pool are created with single sign on enabled. The also requires that single sign on be enabled on the tenant. Known values are: "Disabled" and "Enabled".
stopOnDisconnectobjectStop on disconnect configuration settings for Dev Boxes created in this pool.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
virtualNetworkTypestringIndicates whether the pool uses a Virtual Network managed by Microsoft or a customer provided network. Known values are: "Managed" and "Unmanaged".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, project_name, pool_name, subscription_idGets a machine pool.
list_by_projectselectresource_group_name, project_name, subscription_id$topLists pools for a project.
create_or_updateinsertresource_group_name, project_name, pool_name, subscription_id, locationCreates or updates a machine pool.
updateupdateresource_group_name, project_name, pool_name, subscription_idPartially updates a machine pool.
create_or_updatereplaceresource_group_name, project_name, pool_name, subscription_id, locationCreates or updates a machine pool.
deletedeleteresource_group_name, project_name, pool_name, subscription_idDeletes a machine pool.
run_health_checksexecresource_group_name, project_name, pool_name, subscription_idTriggers 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
pool_namestringName of the pool. Required.
project_namestringThe name of the project. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Gets a machine pool.

SELECT
id,
name,
devBoxCount,
devBoxDefinitionName,
displayName,
healthStatus,
healthStatusDetails,
licenseType,
localAdministrator,
location,
managedVirtualNetworkRegions,
networkConnectionName,
provisioningState,
singleSignOnStatus,
stopOnDisconnect,
systemData,
tags,
type,
virtualNetworkType
FROM azure.devcenter.pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a machine pool.

INSERT INTO azure.devcenter.pools (
tags,
location,
properties,
resource_group_name,
project_name,
pool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ project_name }}',
'{{ pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Partially updates a machine pool.

UPDATE azure.devcenter.pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a machine pool.

REPLACE azure.devcenter.pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a machine pool.

DELETE FROM azure.devcenter.pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Triggers a refresh of the pool status.

EXEC azure.devcenter.pools.run_health_checks 
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;