Skip to main content

scope_maps

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

Overview

Namescope_maps
TypeResource
Idazure.container_registry.scope_maps

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
actionstextfield from the properties object
creation_datetextfield from the properties object
provisioning_statetextfield from the properties object
registryNametextfield from the properties object
resourceGroupNametextfield from the properties object
scopeMapNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTregistryName, resourceGroupName, scopeMapName, subscriptionIdGets the properties of the specified scope map.
listSELECTregistryName, resourceGroupName, subscriptionIdLists all the scope maps for the specified container registry.
createINSERTregistryName, resourceGroupName, scopeMapName, subscriptionIdCreates a scope map for a container registry with the specified parameters.
deleteDELETEregistryName, resourceGroupName, scopeMapName, subscriptionIdDeletes a scope map from a container registry.
updateUPDATEregistryName, resourceGroupName, scopeMapName, subscriptionIdUpdates a scope map with the specified parameters.

SELECT examples

Lists all the scope maps for the specified container registry.

SELECT
description,
actions,
creation_date,
provisioning_state,
registryName,
resourceGroupName,
scopeMapName,
subscriptionId,
type
FROM azure.container_registry.vw_scope_maps
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a scope_maps resource.

/*+ update */
UPDATE azure.container_registry.scope_maps
SET
properties = '{{ properties }}'
WHERE
registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scopeMapName = '{{ scopeMapName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified scope_maps resource.

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