Skip to content

startRestoreAzureNativeVirtualMachineJob

Start a job to restore Azure Native virtual machine with the selected snapshot. When started, this will replace the original VM with the selected snapshot.

Arguments

Argument Type Description
input (required) StartRestoreAzureNativeVirtualMachineJobInput! Input for the job to restore Azure Native Virtual Machine.

Returns

AsyncJobStatus!

Sample

mutation StartRestoreAzureNativeVirtualMachineJob($input: StartRestoreAzureNativeVirtualMachineJobInput!) {
  startRestoreAzureNativeVirtualMachineJob(input: $input) {
    error
    jobId
  }
}
{
  "input": {
    "shouldPowerOn": true,
    "shouldRestoreTags": true,
    "snapshotId": "00000000-0000-0000-0000-000000000000"
  }
}
{
  "data": {
    "startRestoreAzureNativeVirtualMachineJob": {
      "error": "example-string",
      "jobId": "example-string"
    }
  }
}