On Demand Backup
VMware VM On-Demand Backup
To Perform an On-Demand Backup, you will need the Virtual Machine ID
and SLA ID
.
$query = New-Rscmutation -GqlMutation vsphereBulkOnDemandSnapshot -FieldProfile FULL
$query.var.input = Get-RscType -Name vsphereBulkOnDemandSnapshotInput
$query.var.input.config = Get-RscType -Name BulkOnDemandSnapshotJobConfigInput
$query.var.input.config.Vms = @($vm.id)
$query.var.input.config.SlaId = $vm.EffectiveSlaDomain.Id
invoke-rsc $query
To monitor the status of the on-demand backup, see job status