Skip to main content

registries

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

Overview

Nameregistries
TypeResource
Idazure.container_registry.registries

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
admin_user_enabledtextfield from the properties object
anonymous_pull_enabledtextfield from the properties object
creation_datetextfield from the properties object
data_endpoint_enabledtextfield from the properties object
data_endpoint_host_namestextfield from the properties object
encryptiontextfield from the properties object
identitytextManaged identity for the resource.
login_servertextfield from the properties object
metadata_searchtextfield from the properties object
network_rule_bypass_optionstextfield from the properties object
network_rule_settextfield from the properties object
policiestextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
zone_redundancytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTregistryName, resourceGroupName, subscriptionIdGets the properties of the specified container registry.
listSELECTsubscriptionIdLists all the container registries under the specified subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the container registries under the specified resource group.
createINSERTregistryName, resourceGroupName, subscriptionId, data__skuCreates a container registry with the specified parameters.
deleteDELETEregistryName, resourceGroupName, subscriptionIdDeletes a container registry.
updateUPDATEregistryName, resourceGroupName, subscriptionIdUpdates a container registry with the specified parameters.
check_name_availabilityEXECsubscriptionId, data__name, data__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.
generate_credentialsEXECregistryName, resourceGroupName, subscriptionIdGenerate keys for a token of a specified container registry.
import_imageEXECregistryName, resourceGroupName, subscriptionId, data__sourceCopies an image to this container registry from the specified container registry.
regenerate_credentialEXECregistryName, resourceGroupName, subscriptionId, data__nameRegenerates one of the login credentials for the specified container registry.
schedule_runEXECregistryName, resourceGroupName, subscriptionId, data__typeSchedules a new run based on the request parameters and add it to the run queue.

SELECT examples

Lists all the container registries under the specified subscription.

SELECT
id,
name,
admin_user_enabled,
anonymous_pull_enabled,
creation_date,
data_endpoint_enabled,
data_endpoint_host_names,
encryption,
identity,
login_server,
metadata_search,
network_rule_bypass_options,
network_rule_set,
policies,
private_endpoint_connections,
provisioning_state,
public_network_access,
registryName,
resourceGroupName,
sku,
status,
subscriptionId,
system_data,
type,
zone_redundancy
FROM azure.container_registry.vw_registries
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a registries resource.

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

DELETE example

Deletes the specified registries resource.

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