Skip to main content

snapshots

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

Overview

Namesnapshots
TypeResource
Idazure.app_configuration.snapshots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
compositionTypestringThe composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. Known values are: "Key" and "Key_Label". (Key, Key_Label)
createdstring (date-time)The time that the snapshot was created.
etagstringA value representing the current state of the snapshot.
expiresstring (date-time)The time that the snapshot will expire.
filtersarrayA list of filters used to filter the key-values included in the snapshot. Required.
itemsCountintegerThe amount of key-values in the snapshot.
provisioningStatestringThe provisioning state of the snapshot. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". (Creating, Updating, Deleting, Succeeded, Failed, Canceled)
retentionPeriodintegerThe amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used.
sizeintegerThe size in bytes of the snapshot.
statusstringThe current status of the snapshot. Known values are: "Provisioning", "Ready", "Archived", and "Failed". (Provisioning, Ready, Archived, Failed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectThe tags of the snapshot. NOTE: These are data plane tags, not ARM tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, config_store_name, snapshot_name, subscription_idGets the properties of the specified snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
createinsertresource_group_name, config_store_name, snapshot_name, subscription_id, propertiesCreates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.

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
config_store_namestringThe name of the configuration store. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
snapshot_namestringThe name of the snapshot. Required.
subscription_idstring

SELECT examples

Gets the properties of the specified snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.

SELECT
id,
name,
compositionType,
created,
etag,
expires,
filters,
itemsCount,
provisioningState,
retentionPeriod,
size,
status,
systemData,
tags,
type
FROM azure.app_configuration.snapshots
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND config_store_name = '{{ config_store_name }}' -- required
AND snapshot_name = '{{ snapshot_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a snapshot. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.

INSERT INTO azure.app_configuration.snapshots (
properties,
resource_group_name,
config_store_name,
snapshot_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ config_store_name }}',
'{{ snapshot_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;