Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Idazure.container_registry_tasks.registries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
relativePathstringThe relative path to the source. This is used to submit the subsequent queue build request.
uploadUrlstringThe URL where the client can upload the source.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_build_source_upload_urlselectresource_group_name, registry_name, subscription_idGet the upload location for the user to be able to upload the source.
schedule_runexecresource_group_name, registry_name, subscription_id, typeSchedules a new run based on the request parameters and add it to the run queue.

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
registry_namestringThe name of the container registry. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the upload location for the user to be able to upload the source.

SELECT
relativePath,
uploadUrl
FROM azure.container_registry_tasks.registries
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND registry_name = '{{ registry_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Schedules a new run based on the request parameters and add it to the run queue.

EXEC azure.container_registry_tasks.registries.schedule_run 
@resource_group_name='{{ resource_group_name }}' --required,
@registry_name='{{ registry_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"type": "{{ type }}",
"isArchiveEnabled": {{ isArchiveEnabled }},
"agentPoolName": "{{ agentPoolName }}",
"logTemplate": "{{ logTemplate }}"
}'
;