Skip to main content

disk_restore_point

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

Overview

Namedisk_restore_point
TypeResource
Idazure.compute.disk_restore_point

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.
completionPercentnumberPercentage complete for the background copy of disk restore point when source resource is from a different region.
diskAccessIdstringARM id of the DiskAccess resource for using private endpoints on disks.
encryptionobjectEncryption property can be used to encrypt data at rest with customer managed keys or platform managed keys.
familyIdstringid of the backing snapshot's MIS family.
hyperVGenerationstringThe hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". (V1, V2)
logicalSectorSizeintegerLogical sector size in bytes for disk restore points of UltraSSD_LRS and PremiumV2_LRS disks. Supported values are 512 and 4096. 4096 is the default.
networkAccessPolicystringPolicy for accessing the disk via network. Known values are: "AllowAll", "AllowPrivate", and "DenyAll". (AllowAll, AllowPrivate, DenyAll)
osTypestringThe Operating System type. Known values are: "Windows" and "Linux". (Windows, Linux)
publicNetworkAccessstringPolicy for controlling export on the disk. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
purchasePlanobjectPurchase plan information for the the image from which the OS disk was created.
replicationStatestringReplication state of disk restore point when source resource is from a different region.
securityProfileobjectContains the security related information for the resource.
sourceResourceIdstringarm id of source disk or source disk restore point.
sourceResourceLocationstringLocation of source disk or source disk restore point when source resource is from a different region.
sourceUniqueIdstringunique incarnation id of the source disk.
supportedCapabilitiesobjectList of supported capabilities for the image from which the OS disk was created.
supportsHibernationbooleanIndicates the OS on a disk supports hibernation.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
timeCreatedstring (date-time)The timestamp of restorePoint creation.
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, vm_restore_point_name, disk_restore_point_name, subscription_idGet disk restorePoint resource.
list_by_restore_pointselectresource_group_name, restore_point_collection_name, vm_restore_point_name, subscription_idLists diskRestorePoints under a vmRestorePoint.
grant_accessexecresource_group_name, restore_point_collection_name, vm_restore_point_name, disk_restore_point_name, subscription_id, access, durationInSecondsGrants access to a diskRestorePoint.
revoke_accessexecresource_group_name, restore_point_collection_name, vm_restore_point_name, disk_restore_point_name, subscription_idRevokes access to a diskRestorePoint.

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
disk_restore_point_namestringThe name of the DiskRestorePoint. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
restore_point_collection_namestringThe name of the restore point collection that the disk restore point belongs. Required.
subscription_idstring
vm_restore_point_namestringThe name of the vm restore point that the disk disk restore point belongs. Required.

SELECT examples

Get disk restorePoint resource.

SELECT
id,
name,
completionPercent,
diskAccessId,
encryption,
familyId,
hyperVGeneration,
logicalSectorSize,
networkAccessPolicy,
osType,
publicNetworkAccess,
purchasePlan,
replicationState,
securityProfile,
sourceResourceId,
sourceResourceLocation,
sourceUniqueId,
supportedCapabilities,
supportsHibernation,
systemData,
timeCreated,
type
FROM azure.compute.disk_restore_point
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND restore_point_collection_name = '{{ restore_point_collection_name }}' -- required
AND vm_restore_point_name = '{{ vm_restore_point_name }}' -- required
AND disk_restore_point_name = '{{ disk_restore_point_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Grants access to a diskRestorePoint.

EXEC azure.compute.disk_restore_point.grant_access 
@resource_group_name='{{ resource_group_name }}' --required,
@restore_point_collection_name='{{ restore_point_collection_name }}' --required,
@vm_restore_point_name='{{ vm_restore_point_name }}' --required,
@disk_restore_point_name='{{ disk_restore_point_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"access": "{{ access }}",
"durationInSeconds": {{ durationInSeconds }},
"getSecureVMGuestStateSAS": {{ getSecureVMGuestStateSAS }},
"fileFormat": "{{ fileFormat }}"
}'
;