Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.container_registry.agent_pools

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
agentPoolNametextfield from the properties object
counttextfield from the properties object
ostextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tiertextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
virtual_network_subnet_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTagentPoolName, registryName, resourceGroupName, subscriptionIdGets the detailed information for a given agent pool.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all the agent pools for a specified container registry.
createINSERTagentPoolName, registryName, resourceGroupName, subscriptionIdCreates an agent pool for a container registry with the specified parameters.
deleteDELETEagentPoolName, registryName, resourceGroupName, subscriptionIdDeletes a specified agent pool resource.
updateUPDATEagentPoolName, registryName, resourceGroupName, subscriptionIdUpdates an agent pool with the specified parameters.

SELECT examples

Lists all the agent pools for a specified container registry.

SELECT
id,
name,
agentPoolName,
count,
os,
provisioning_state,
registryName,
resourceGroupName,
subscriptionId,
system_data,
tier,
type,
virtual_network_subnet_resource_id
FROM azure.container_registry.vw_agent_pools
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_registry.agent_pools (
agentPoolName,
registryName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ agentPoolName }}',
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a agent_pools resource.

/*+ update */
UPDATE azure.container_registry.agent_pools
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
agentPoolName = '{{ agentPoolName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified agent_pools resource.

/*+ delete */
DELETE FROM azure.container_registry.agent_pools
WHERE agentPoolName = '{{ agentPoolName }}'
AND registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';