Skip to main content

tasks

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

Overview

Nametasks
TypeResource
Idazure.container_registry.tasks

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
agent_configurationtextfield from the properties object
agent_pool_nametextfield from the properties object
creation_datetextfield from the properties object
credentialstextfield from the properties object
identitytextManaged identity for the resource.
is_system_tasktextfield from the properties object
log_templatetextfield from the properties object
platformtextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
steptextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
taskNametextfield from the properties object
timeouttextfield from the properties object
triggertextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTregistryName, resourceGroupName, subscriptionId, taskNameGet the properties of a specified task.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all the tasks for a specified container registry.
createINSERTregistryName, resourceGroupName, subscriptionId, taskNameCreates a task for a container registry with the specified parameters.
deleteDELETEregistryName, resourceGroupName, subscriptionId, taskNameDeletes a specified task.
updateUPDATEregistryName, resourceGroupName, subscriptionId, taskNameUpdates a task with the specified parameters.

SELECT examples

Lists all the tasks for a specified container registry.

SELECT
id,
name,
agent_configuration,
agent_pool_name,
creation_date,
credentials,
identity,
is_system_task,
log_template,
platform,
provisioning_state,
registryName,
resourceGroupName,
status,
step,
subscriptionId,
system_data,
taskName,
timeout,
trigger,
type
FROM azure.container_registry.vw_tasks
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a tasks resource.

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

DELETE example

Deletes the specified tasks resource.

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