Skip to main content

tasks

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

Overview

Nametasks
TypeResource
Idazure.container_registry.tasks

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.
identityobjectIdentity for the resource.
locationstringThe location of the resource. This cannot be changed after the resource is created.
propertiesobjectThe properties of a task.
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, taskNameGet the properties of a specified task.
listselectsubscriptionId, resourceGroupName, registryNameLists all the tasks for a specified container registry.
createinsertsubscriptionId, resourceGroupName, registryName, taskNameCreates a task for a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryName, taskNameUpdates a task with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryName, taskNameDeletes a specified task.

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
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.
taskNamestringThe name of the container registry task.

SELECT examples

Get the properties of a specified task.

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

INSERT examples

Creates a task for a container registry with the specified parameters.

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

UPDATE examples

Updates a task with the specified parameters.

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

DELETE examples

Deletes a specified task.

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