Set-VBRvCDIndividualObjectStoragePolicy
Short Description
Modifying the Cloud Director storage policies for vApps or VMs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
vApp
|
Set-VBRvCDIndividualObjectStoragePolicy -Policy <VBRvCDIndividualObjectStoragePolicy> [-VApp <CVcdVappItem>]
[-StoragePolicy <CVcdOrgVdcStorageProfile>] [<CommonParameters>] |
-
VM
|
Set-VBRvCDIndividualObjectStoragePolicy -Policy <VBRvCDIndividualObjectStoragePolicy> [-VM <CVcdVappItem>]
[-StoragePolicy <CVcdOrgVdcStorageProfile>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the Cloud Director storage policies for vApps or VMs.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Policy
|
Specifies the Cloud Director storage policies for vApps or VMs. The cmdlet will modify this policy.
Accepts the VBRvCDIndividualObjectStoragePolicy object. To create this object, run the New-VBRvCDIndividualObjectStoragePolicyDefines Cloud Director storage policies for vApps or VMs. cmdlet.
|
VBRvCDIndividualObjectStoragePolicy
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
|
StoragePolicy
|
Specifies the storage policy. The cmdlet will modify a storage policy according to this policy settings.
Accepts the CVcdOrgVdcStorageProfile object. To get this object, run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet.
|
CVcdOrgVdcStorageProfile
|
False
|
Named
|
False
|
|
VApp
|
Specifies the vApp for which you want to modify a storage policy.
Accepts the CVcdVappItem object. To get this object, run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet.
|
CVcdVappItem
|
False
|
Named
|
False
|
|
VM
|
Specifies the VM for which you want to modify a storage policy.
Accepts the CVcdVappItem object. To get this object, run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet.
|
CVcdVappItem
|
False
|
Named
|
False
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRvCDIndividualObjectStoragePolicy object that defines the settings of Cloud Director storage policies for vApps or VMs.
Examples
Example 1. Modifying VApp Storage Policy
|
This example shows how to apply the Virginia vApp policy for the Atlanta05 policy.
|
$vapp = Find-VBRvCloudEntity -VApp -Name "Atlanta05"
$policy = Find-VBRvCloudEntity -StorageProfile
$vpolicy = New-VBRvCDIndividualObjectStoragePolicy -VApp $vapp[0] -StoragePolicy $policy[0]
$newpolicy = Find-VBRvCloudEntity -StorageProfile -Name "Virginia vApp"
Set-VBRvCDIndividualObjectStoragePolicy -Policy $vpolicy -StoragePolicy $newpolicy |
Perform the following steps:
- Define the settings of Cloud Director storage policies for vApps.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the Name and VApp parameters. Save the result to the $vapp variable.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Provide the StorageProfile parameter. Save the result to the $policy variable.
- Run the
New-VBRvCDIndividualObjectStoragePolicyDefines Cloud Director storage policies for vApps or VMs. cmdlet. Specify the VApp and the StoragePolicy parameters. Save the result to the $vpolicy variable.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the StoragePolicy and the Name parameters. Save the result to the $newpolicy variable.
- Run the
Set-VBRvCDIndividualObjectStoragePolicy cmdlet. Set the $vpolicy variable as the Policy parameter value. Set the $newpolicy variable as the StoragePolicy parameter value.
|
Example 2. Modifying VM Storage Policy
|
This example shows how to apply the Virginia vApp policy for the Admin05 VM.
|
$vapp = Find-VBRvCloudEntity -VM -Name "Admin05"
$policy = Find-VBRvCloudEntity -StorageProfile
$vmpolicy = New-VBRvCDIndividualObjectStoragePolicy -VM $vapp[0] -StoragePolicy $policy[0]
$newpolicy = Find-VBRvCloudEntity -StorageProfile -Name "Virginia vApp"
Set-VBRvCDIndividualObjectStoragePolicy -Policy $vmpolicy -StoragePolicy $newpolicy |
Perform the following steps:
- Define the settings of Cloud Director storage policies for vApps.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the Name and VApp parameters. Save the result to the $vapp variable.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Provide the StorageProfile parameter. Save the result to the $policy variable.
- Run the
New-VBRvCDIndividualObjectStoragePolicyDefines Cloud Director storage policies for vApps or VMs. cmdlet. Specify the VM and the StoragePolicy parameters. Save the result to the $vmpolicy variable.
- Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the StoragePolicy and the Name parameters. Save the result to the $newpolicy variable.
- Run the
Set-VBRvCDIndividualObjectStoragePolicy cmdlet. Set the $vmpolicy variable as the Policy parameter value. Set the $newpolicy variable as the StoragePolicy parameter value.
|
Related Commands