< Back

Set-SVTvmPolicy

Tue Jan 14, 2020 2:17 am

NAME Set-SVTvmPolicy



SYNOPSIS

Sets a new HPE SimpliVity backup policy on a virtual machine





SYNTAX

Set-SVTvmPolicy [-PolicyName] <String> [-VMname] <String> [<CommonParameters>]





DESCRIPTION

Sets a new HPE SimpliVity backup policy on a virtual machine. When a VM is first created, it inherits the

backup policy set on the datastore it is first created on. Use this command to explicitely reset the backup

policy for a given VM.





PARAMETERS

-PolicyName <String>

The name of the backup policy to be used



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-VMname <String>

The VM that will get a new backup policy setting



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

HPE.SimpliVity.VirtualMachine





OUTPUTS

HPE.SimpliVity.Task





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-SVTvm -Datastore DS01 | Set-SVTPolicy Silver



Changes the backup policy for all VMs on the specified datastore.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-SVTPolicy Silver VM01



Using positional parameters to apply a new backup policy to the VM









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-SVTPolicy -VMname VM01 -PolicyName Silver



Using named parameters to apply a new backup policy to the VM











RELATED LINKS