Skip to main content

replications

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

Overview

Namereplications
TypeResource
Idazure.container_registry.replications

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
provisioning_statetextfield from the properties object
region_endpoint_enabledtextfield from the properties object
registryNametextfield from the properties object
replicationNametextfield from the properties object
resourceGroupNametextfield from the properties object
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, replicationName, resourceGroupName, subscriptionIdGets the properties of the specified replication.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all the replications for the specified container registry.
createINSERTregistryName, replicationName, resourceGroupName, subscriptionIdCreates a replication for a container registry with the specified parameters.
deleteDELETEregistryName, replicationName, resourceGroupName, subscriptionIdDeletes a replication from a container registry.
updateUPDATEregistryName, replicationName, resourceGroupName, subscriptionIdUpdates a replication for a container registry with the specified parameters.

SELECT examples

Lists all the replications for the specified container registry.

SELECT
id,
name,
provisioning_state,
region_endpoint_enabled,
registryName,
replicationName,
resourceGroupName,
status,
subscriptionId,
system_data,
type,
zone_redundancy
FROM azure.container_registry.vw_replications
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_registry.replications (
registryName,
replicationName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ registryName }}',
'{{ replicationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a replications resource.

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

DELETE example

Deletes the specified replications resource.

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