Skip to main content

restore_points

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

Overview

Namerestore_points
TypeResource
Idazure.compute.restore_points

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.
consistencyModestringConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints _ for more details. Known values are: "CrashConsistent", "FileSystemConsistent", and "ApplicationConsistent". (CrashConsistent, FileSystemConsistent, ApplicationConsistent)
excludeDisksarrayList of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
instanceViewobjectThe restore point instance view.
instantAccessDurationMinutesintegerThis property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.
provisioningStatestringGets the provisioning state of the restore point.
sourceMetadataobjectGets the details of the VM captured at the time of the restore point creation.
sourceRestorePointobjectThe API entity reference.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeCreatedstring (date-time)Gets the creation time of the restore point.
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, restore_point_name, subscription_id$expandThe operation to get the restore point.
createinsertresource_group_name, restore_point_collection_name, restore_point_name, subscription_idThe operation to create the restore point. Updating properties of an existing restore point is not allowed.
deletedeleteresource_group_name, restore_point_collection_name, restore_point_name, subscription_idThe operation to delete the restore point.

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.
restore_point_namestringThe name of the restore point. Required.
subscription_idstring
$expandstringThe expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. "instanceView" Default value is None.

SELECT examples

The operation to get the restore point.

SELECT
id,
name,
consistencyMode,
excludeDisks,
instanceView,
instantAccessDurationMinutes,
provisioningState,
sourceMetadata,
sourceRestorePoint,
systemData,
timeCreated,
type
FROM azure.compute.restore_points
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' -- required
AND restore_point_name = '{{ restore_point_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

The operation to create the restore point. Updating properties of an existing restore point is not allowed.

INSERT INTO azure.compute.restore_points (
properties,
resource_group_name,
restore_point_collection_name,
restore_point_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ restore_point_collection_name }}',
'{{ restore_point_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

The operation to delete the restore point.

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