Skip to main content

environments_worker_pools

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

Overview

Nameenvironments_worker_pools
TypeResource
Idazure.app_service.environments_worker_pools

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource Name.
compute_modetextfield from the properties object
instance_namestextfield from the properties object
kindtextKind of resource.
resourceGroupNametextfield from the properties object
skutextDescription of a SKU for a scalable resource.
subscriptionIdtextfield from the properties object
typetextResource type.
workerPoolNametextfield from the properties object
worker_counttextfield from the properties object
worker_sizetextfield from the properties object
worker_size_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionId, workerPoolNameDescription for Get properties of a worker pool.
listSELECTname, resourceGroupName, subscriptionIdDescription for Get all worker pools of an App Service Environment.
create_or_updateINSERTname, resourceGroupName, subscriptionId, workerPoolNameDescription for Create or update a worker pool.
updateUPDATEname, resourceGroupName, subscriptionId, workerPoolNameDescription for Create or update a worker pool.

SELECT examples

Description for Get all worker pools of an App Service Environment.

SELECT
id,
name,
compute_mode,
instance_names,
kind,
resourceGroupName,
sku,
subscriptionId,
type,
workerPoolName,
worker_count,
worker_size,
worker_size_id
FROM azure.app_service.vw_environments_worker_pools
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.environments_worker_pools (
name,
resourceGroupName,
subscriptionId,
workerPoolName,
kind,
properties,
sku
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workerPoolName }}',
'{{ kind }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a environments_worker_pools resource.

/*+ update */
UPDATE azure.app_service.environments_worker_pools
SET
kind = '{{ kind }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workerPoolName = '{{ workerPoolName }}';