Skip to main content

agent_pools

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

Overview

Nameagent_pools
TypeResource
Idazure.container_registry.agent_pools

Fields

The following fields are returned by SELECT queries:

The request was successful; the request was well-formed and received properly.

NameDatatypeDescription
idstringThe resource ID.
namestringThe name of the resource.
locationstringThe location of the resource. This cannot be changed after the resource is created.
propertiesobjectThe properties associated with the agent pool
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, registryName, agentPoolNameGets the detailed information for a given agent pool.
listselectsubscriptionId, resourceGroupName, registryNameLists all the agent pools for a specified container registry.
createinsertsubscriptionId, resourceGroupName, registryName, agentPoolNameCreates an agent pool for a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryName, agentPoolNameUpdates an agent pool with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, agentPoolNameDeletes a specified agent pool resource.

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
agentPoolNamestringThe name of the agent pool.
registryNamestringThe name of the container registry.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets the detailed information for a given agent pool.

SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure.container_registry.agent_pools
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND registryName = '{{ registryName }}' -- required
AND agentPoolName = '{{ agentPoolName }}' -- required
;

INSERT examples

Creates an agent pool for a container registry with the specified parameters.

INSERT INTO azure.container_registry.agent_pools (
data__location,
data__tags,
data__properties,
subscriptionId,
resourceGroupName,
registryName,
agentPoolName
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}',
'{{ agentPoolName }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates an agent pool with the specified parameters.

UPDATE azure.container_registry.agent_pools
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND agentPoolName = '{{ agentPoolName }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a specified agent pool resource.

DELETE FROM azure.container_registry.agent_pools
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND registryName = '{{ registryName }}' --required
AND agentPoolName = '{{ agentPoolName }}' --required
;