Skip to main content

task_runs

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

Overview

Nametask_runs
TypeResource
Idazure.container_registry.task_runs

Fields

NameDatatypeDescription
force_update_tagtextfield from the properties object
identitytextManaged identity for the resource.
locationtextThe location of the resource
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
run_requesttextfield from the properties object
run_resulttextfield from the properties object
subscriptionIdtextfield from the properties object
taskRunNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTregistryName, resourceGroupName, subscriptionId, taskRunNameGets the detailed information for a given task run.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all the task runs for a specified container registry.
createINSERTregistryName, resourceGroupName, subscriptionId, taskRunNameCreates a task run for a container registry with the specified parameters.
deleteDELETEregistryName, resourceGroupName, subscriptionId, taskRunNameDeletes a specified task run resource.
updateUPDATEregistryName, resourceGroupName, subscriptionId, taskRunNameUpdates a task run with the specified parameters.

SELECT examples

Lists all the task runs for a specified container registry.

SELECT
force_update_tag,
identity,
location,
provisioning_state,
registryName,
resourceGroupName,
run_request,
run_result,
subscriptionId,
taskRunName
FROM azure.container_registry.vw_task_runs
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a task_runs resource.

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

DELETE example

Deletes the specified task_runs resource.

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