Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Idazure.container_registry.registries

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.
identityobjectThe identity of the container registry.
locationstringThe location of the resource. This cannot be changed after the resource is created.
propertiesobjectThe properties of the container registry.
skuobjectThe SKU of a container registry.
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, registryNameGets the properties of the specified container registry.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all the container registries under the specified resource group.
listselectsubscriptionIdLists all the container registries under the specified subscription.
createinsertsubscriptionId, resourceGroupName, registryName, data__skuCreates a container registry with the specified parameters.
updateupdatesubscriptionId, resourceGroupName, registryNameUpdates a container registry with the specified parameters.
deletedeletesubscriptionId, resourceGroupName, registryNameDeletes a container registry.
schedule_runexecsubscriptionId, resourceGroupName, registryName, typeSchedules a new run based on the request parameters and add it to the run queue.
import_imageexecsubscriptionId, resourceGroupName, registryName, sourceCopies an image to this container registry from the specified container registry.
check_name_availabilityexecsubscriptionId, name, typeChecks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
regenerate_credentialexecsubscriptionId, resourceGroupName, registryName, nameRegenerates one of the login credentials for the specified container registry.
generate_credentialsexecsubscriptionId, resourceGroupName, registryNameGenerate keys for a token of a specified container registry.

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.

SELECT examples

Gets the properties of the specified container registry.

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

INSERT examples

Creates a container registry with the specified parameters.

INSERT INTO azure.container_registry.registries (
data__location,
data__tags,
data__sku,
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
registryName
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ registryName }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates a container registry with the specified parameters.

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

DELETE examples

Deletes a container registry.

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

Lifecycle Methods

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

EXEC azure.container_registry.registries.schedule_run 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@registryName='{{ registryName }}' --required
@@json=
'{
"type": "{{ type }}",
"isArchiveEnabled": {{ isArchiveEnabled }},
"agentPoolName": "{{ agentPoolName }}",
"logTemplate": "{{ logTemplate }}"
}'
;