Skip to main content

restore_point_collections

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

Overview

Namerestore_point_collections
TypeResource
Idazure.compute.restore_point_collections

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.
instantAccessbooleanThis property determines whether instant access snapshot is enabled for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. Instant access snapshot for Premium SSD v2 or Ultra disk is instantaneously available for restoring disk with fast restore performance.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe provisioning state of the restore point collection.
restorePointCollectionIdstringThe unique id of the restore point collection.
restorePointsarrayA list containing all restore points created under this restore point collection.
sourceobjectThe properties of the source resource that this restore point collection is created from.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource 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, restore_point_collection_name, subscription_id$expandThe operation to get the restore point collection.
listselectresource_group_name, subscription_idGets the list of restore point collections in a resource group.
list_allselectsubscription_idGets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.
create_or_updateinsertresource_group_name, restore_point_collection_name, subscription_id, locationThe operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints _ for more details. When updating a restore point collection, only tags may be modified.
updateupdateresource_group_name, restore_point_collection_name, subscription_idThe operation to update the restore point collection.
create_or_updatereplaceresource_group_name, restore_point_collection_name, subscription_id, locationThe operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints _ for more details. When updating a restore point collection, only tags may be modified.
deletedeleteresource_group_name, restore_point_collection_name, subscription_idThe operation to delete the restore point collection. This operation will also delete all the contained restore points.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
restore_point_collection_namestringThe name of the restore point collection. Required.
subscription_idstring
$expandstringThe expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection. "restorePoints" Default value is None.

SELECT examples

The operation to get the restore point collection.

SELECT
id,
name,
instantAccess,
location,
provisioningState,
restorePointCollectionId,
restorePoints,
source,
systemData,
tags,
type
FROM azure.compute.restore_point_collections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints _ for more details. When updating a restore point collection, only tags may be modified.

INSERT INTO azure.compute.restore_point_collections (
tags,
location,
properties,
resource_group_name,
restore_point_collection_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ restore_point_collection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

The operation to update the restore point collection.

UPDATE azure.compute.restore_point_collections
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints _ for more details. When updating a restore point collection, only tags may be modified.

REPLACE azure.compute.restore_point_collections
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

The operation to delete the restore point collection. This operation will also delete all the contained restore points.

DELETE FROM azure.compute.restore_point_collections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;