หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Use the Azure Compute REST APIs to create application-consistent or crash-consistent restore points for a VM, in the same region or cross-region.
API references: Restore Points | Restore Point Collections | PowerShell
Prerequisites
- Learn more about the requirements for a VM restore point.
- Review the support requirements and limitations before creating restore points.
Create VM restore points
The following sections outline the steps you need to take to create VM restore points with the Azure Compute REST APIs.
You can find more information in the Restore Points, PowerShell, and Restore Point Collections API documentation.
Step 1: Create a VM restore point collection
A restore point collection is the parent resource that holds all restore points for a VM.
Call the Restore Point Collections — Create or Update API:
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{collectionName}?api-version=2021-03-01
Request body:
{
"location": "<region>",
"properties": {
"source": {
"id": "<VM Arm Id>"
},
"instantAccess": true
}
}
- Set
locationto the VM's region for a local collection, or to the target region for a cross-region collection (and include the source restore point collection's ARM resource ID insource.id). - Optionally to enable Instant Access (Preview), add
"instantAccess": truetoproperties. This applies to all restore points created in the collection. Requires API version 2025-04-01 or later. This is applicable only for VMs with Premium SSD v2 and/or Ultra disks as data disks.
Step 2: Create a VM restore point
Call the Restore Points — Create API within the collection created in Step 1:
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{collectionName}/restorePoints/{restorePointName}?api-version=2021-03-01
Request body:
{
"name": "<restorePointName>",
"properties": {
"instantAccessDurationMinutes": 120,
"provisioningState": "Succeeded",
}
}
Note: instantAccessDurationMinutes is an optional parameter. Default is 300 (5 hours). Can be set to a lower value, but not higher than 300. This is applicable for future restore points and NOT for existing restore points already created.
Key request body properties:
| Property | Description |
|---|---|
consistencyMode |
Omit for application-consistent (default). Set to CrashConsistent for crash-consistent restore points. |
excludeDisks |
Optional. Array of disk identifiers to exclude from the restore point, to reduce storage cost. |
instantAccessDurationMinutes |
Optional. (Instant Access only) Duration in minutes for Instant Access. Valid range: 60–300. Default: 300 minutes (5 hours). |
Step 3: Track the status of the VM restore point creation
Local restore points complete within a few seconds. Check provisioningState on the restore point — it transitions from Creating to Succeeded (or Failed).
Cross-region restore points are a long-running operation. Poll the Restore Points — Get API with $expand=instanceView to check per-disk copy progress (completionPercent). The restore point is usable only after all disk restore points have completed replication.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{collectionName}/restorePoints/{restorePointName}?$expand=instanceView&api-version=2021-03-01
Snapshot Access status: If the collection has Instant Access enabled, the same GET response with instanceView includes snapshotAccessState per disk restore point. A status of InstantAccess or AvailableWithInstantAccess means the restore point is ready for fast disk restoration.
Step 4: Disable InstantAccess
Use the following REST API call to disable IA enabled on the VM.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}?api-version=2025-04-01
Request body:
{
"location": "<region>",
"properties": {
"source": {
"id": "<VM Arm Id>"
},
"instantAccess": false
}
}
Next steps
- Learn more about managing restore points.
- Create restore points using the Azure portal, CLI, or PowerShell.
- Learn more about Backup and restore options for virtual machines in Azure.