New-VBRvCDIndividualObjectStoragePolicy

Short Description

Defines 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

    New-VBRvCDIndividualObjectStoragePolicy -VApp <CVcdVappItem> -StoragePolicy <CVcdOrgVdcStorageProfile> [<CommonParameters>]

  • VM

    New-VBRvCDIndividualObjectStoragePolicy -VM <CVcdVappItem> -StoragePolicy <CVcdOrgVdcStorageProfile> [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRvCDIndividualObjectStoragePolicy object. This object defines the settings of Cloud Director storage policies for vApps or VMs.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

StoragePolicy

Specifies the storage policy. The cmdlet will define 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

True

Named

False

VApp

Specifies the vApp for which you want to define a storage policy.

Accepts the CVcdVappItem object. To get this object, run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet.

CVcdVappItem

True

Named

False

VM

Specifies the VM for which you want to define a storage policy.

Accepts the CVcdVappItem object. To get this object, run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet.

CVcdVappItem

True

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

New-VBRvCDIndividualObjectStoragePolicyExample 1. Defining VApp Storage Policy

This example shows how to define a storage policy for the Atlanta05 vApp.

$vapp = Find-VBRvCloudEntity -VApp -Name "Atlanta05"

$policy = Find-VBRvCloudEntity -StorageProfile

$vpolicy = New-VBRvCDIndividualObjectStoragePolicy -VApp $vapp[0] -StoragePolicy $policy[0]

Perform the following steps:

  1. Run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the Name and VApp parameters. Save the result to the $vapp variable.
  2. Run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Provide the StorageProfile parameter. Save the result to the $policy variable.
  3. Run the New-VBRvCDIndividualObjectStoragePolicy cmdlet. Set the $vapp variable as the VApp parameter value. Set the $policy variable as the StoragePolicy parameter value. Save the result to the $vpolicy variable.

New-VBRvCDIndividualObjectStoragePolicyExample 2. Defining VM Storage Policy

This example shows how to define a storage policy for the Admin05 VM.

$vapp = Find-VBRvCloudEntity -VM -Name "Admin05"

$policy = Find-VBRvCloudEntity -StorageProfile

$vmpolicy = New-VBRvCDIndividualObjectStoragePolicy -VM $vapp[0] -StoragePolicy $policy[0]

Perform the following steps:

  1. Run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify the Name and VM parameters. Save the result to the $vapp variable.
  2. Run the Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Provide the StorageProfile parameter. Save the result to the $policy variable.
  3. Run the New-VBRvCDIndividualObjectStoragePolicy cmdlet. Set the $vapp variable as the VM parameter value. Set the $policy variable as the StoragePolicy parameter value. Save the result to the $vmpolicy variable.

Find-VBRvCloudEntityLooks for Cloud Director entities.

Page updated 2026-08-19

Page content applies to build 13.1.1.18