restore_points
Creates, updates, deletes, gets or lists a restore_points
resource.
Overview
Name | restore_points |
Type | Resource |
Id | azure.compute.restore_points |
Fields
- vw_restore_points
- restore_points
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
consistency_mode | text | field from the properties object |
exclude_disks | text | field from the properties object |
instance_view | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
restorePointCollectionName | text | field from the properties object |
restorePointName | text | field from the properties object |
source_metadata | text | field from the properties object |
source_restore_point | text | field from the properties object |
subscriptionId | text | field from the properties object |
time_created | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | The restore point properties. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, restorePointCollectionName, restorePointName, subscriptionId | The operation to get the restore point. |
create | INSERT | resourceGroupName, restorePointCollectionName, restorePointName, subscriptionId | The operation to create the restore point. Updating properties of an existing restore point is not allowed |
delete | DELETE | resourceGroupName, restorePointCollectionName, restorePointName, subscriptionId | The operation to delete the restore point. |
SELECT
examples
The operation to get the restore point.
- vw_restore_points
- restore_points
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.compute.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.restore_points (
resourceGroupName,
restorePointCollectionName,
restorePointName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ restorePointCollectionName }}',
'{{ restorePointName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: excludeDisks
value:
- - name: id
value: string
- name: sourceMetadata
value:
- name: hardwareProfile
value:
- name: vmSize
value: string
- name: vmSizeProperties
value:
- name: vCPUsAvailable
value: integer
- name: vCPUsPerCore
value: integer
- name: storageProfile
value:
- name: osDisk
value:
- name: osType
value: string
- name: encryptionSettings
value:
- name: diskEncryptionKey
value:
- name: secretUrl
value: string
- name: sourceVault
value:
- name: id
value: string
- name: keyEncryptionKey
value:
- name: keyUrl
value: string
- name: enabled
value: boolean
- name: name
value: string
- name: caching
value: []
- name: diskSizeGB
value: integer
- name: managedDisk
value:
- name: storageAccountType
value: []
- name: diskEncryptionSet
value:
- name: id
value: string
- name: securityProfile
value:
- name: securityEncryptionType
value: string
- name: id
value: string
- name: diskRestorePoint
value:
- name: encryption
value:
- name: type
value: []
- name: sourceDiskRestorePoint
value:
- name: id
value: string
- name: id
value: string
- name: writeAcceleratorEnabled
value: boolean
- name: dataDisks
value:
- - name: lun
value: integer
- name: name
value: string
- name: diskSizeGB
value: integer
- name: writeAcceleratorEnabled
value: boolean
- name: diskControllerType
value: []
- name: osProfile
value:
- name: computerName
value: string
- name: adminUsername
value: string
- name: adminPassword
value: string
- name: customData
value: string
- name: windowsConfiguration
value:
- name: provisionVMAgent
value: boolean
- name: enableAutomaticUpdates
value: boolean
- name: timeZone
value: string
- name: additionalUnattendContent
value:
- - name: passName
value: string
- name: componentName
value: string
- name: settingName
value: string
- name: content
value: string
- name: patchSettings
value:
- name: patchMode
value: string
- name: enableHotpatching
value: boolean
- name: assessmentMode
value: string
- name: automaticByPlatformSettings
value:
- name: rebootSetting
value: string
- name: bypassPlatformSafetyChecksOnUserSchedule
value: boolean
- name: winRM
value:
- name: listeners
value:
- - name: protocol
value: string
- name: certificateUrl
value: string
- name: enableVMAgentPlatformUpdates
value: boolean
- name: linuxConfiguration
value:
- name: disablePasswordAuthentication
value: boolean
- name: ssh
value:
- name: publicKeys
value:
- - name: path
value: string
- name: keyData
value: string
- name: provisionVMAgent
value: boolean
- name: patchSettings
value:
- name: patchMode
value: string
- name: assessmentMode
value: string
- name: automaticByPlatformSettings
value:
- name: rebootSetting
value: string
- name: bypassPlatformSafetyChecksOnUserSchedule
value: boolean
- name: enableVMAgentPlatformUpdates
value: boolean
- name: secrets
value:
- - name: vaultCertificates
value:
- - name: certificateUrl
value: string
- name: certificateStore
value: string
- name: allowExtensionOperations
value: boolean
- name: requireGuestProvisionSignal
value: boolean
- name: diagnosticsProfile
value:
- name: bootDiagnostics
value:
- name: enabled
value: boolean
- name: storageUri
value: string
- name: licenseType
value: string
- name: vmId
value: string
- name: securityProfile
value:
- name: uefiSettings
value:
- name: secureBootEnabled
value: boolean
- name: vTpmEnabled
value: boolean
- name: encryptionAtHost
value: boolean
- name: securityType
value: string
- name: encryptionIdentity
value:
- name: userAssignedIdentityResourceId
value: string
- name: proxyAgentSettings
value:
- name: enabled
value: boolean
- name: mode
value: string
- name: keyIncarnationId
value: integer
- name: location
value: string
- name: userData
value: string
- name: hyperVGeneration
value: []
- name: provisioningState
value: string
- name: consistencyMode
value: string
- name: timeCreated
value: string
- name: instanceView
value:
- name: diskRestorePoints
value:
- - name: id
value: string
- name: replicationStatus
value:
- name: status
value:
- name: code
value: string
- name: level
value: string
- name: displayStatus
value: string
- name: message
value: string
- name: time
value: string
- name: completionPercent
value: integer
- name: statuses
value:
- - name: code
value: string
- name: level
value: string
- name: displayStatus
value: string
- name: message
value: string
- name: time
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
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 }}';