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

NameDatatypeDescription
idtextResource Id
nametextResource name
locationtextResource location
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
restorePointCollectionNametextfield from the properties object
restore_point_collection_idtextfield from the properties object
restore_pointstextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, restorePointCollectionName, subscriptionIdThe operation to get the restore point collection.
listSELECTresourceGroupName, subscriptionIdGets the list of restore point collections in a resource group.
list_allSELECTsubscriptionIdGets 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_updateINSERTresourceGroupName, restorePointCollectionName, subscriptionIdThe 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.
deleteDELETEresourceGroupName, restorePointCollectionName, subscriptionIdThe operation to delete the restore point collection. This operation will also delete all the contained restore points.
updateUPDATEresourceGroupName, restorePointCollectionName, subscriptionIdThe operation to update the restore point collection.

SELECT examples

Gets 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.

SELECT
id,
name,
location,
provisioning_state,
resourceGroupName,
restorePointCollectionName,
restore_point_collection_id,
restore_points,
source,
subscriptionId,
tags,
type
FROM azure.compute.vw_restore_point_collections
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a restore_point_collections resource.

/*+ update */
UPDATE azure.compute.restore_point_collections
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND restorePointCollectionName = '{{ restorePointCollectionName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified restore_point_collections resource.

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