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

NameDatatypeDescription
idtextResource Id
nametextResource name
consistency_modetextfield from the properties object
exclude_diskstextfield from the properties object
instance_viewtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
restorePointCollectionNametextfield from the properties object
restorePointNametextfield from the properties object
source_metadatatextfield from the properties object
source_restore_pointtextfield from the properties object
subscriptionIdtextfield from the properties object
time_createdtextfield from the properties object
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, restorePointCollectionName, restorePointName, subscriptionIdThe operation to get the restore point.
createINSERTresourceGroupName, restorePointCollectionName, restorePointName, subscriptionIdThe operation to create the restore point. Updating properties of an existing restore point is not allowed
deleteDELETEresourceGroupName, restorePointCollectionName, restorePointName, subscriptionIdThe operation to delete the restore point.

SELECT examples

The operation to get the restore point.

SELECT
id,
name,
consistency_mode,
exclude_disks,
instance_view,
provisioning_state,
resourceGroupName,
restorePointCollectionName,
restorePointName,
source_metadata,
source_restore_point,
subscriptionId,
time_created,
type
FROM azure.compute.vw_restore_points
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND restorePointCollectionName = '{{ restorePointCollectionName }}'
AND restorePointName = '{{ restorePointName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.compute.restore_points (
resourceGroupName,
restorePointCollectionName,
restorePointName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ restorePointCollectionName }}',
'{{ restorePointName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified restore_points resource.

/*+ delete */
DELETE FROM azure.compute.restore_points
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND restorePointCollectionName = '{{ restorePointCollectionName }}'
AND restorePointName = '{{ restorePointName }}'
AND subscriptionId = '{{ subscriptionId }}';