Short Description
Modifies VMware cloud storage for tenants replication resources.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a VCP license.
Syntax
Set-VBRViCloudHWPlanDatastore -CloudDatastore <VBRViCloudHardwarePlanDatastore> [-Datastore <VBRViDatastoreBase>] [-StoragePolicy <VBRViStoragePolicy>] [-FriendlyName <string>] [-Quota <int>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the settings of a selected cloud storage in an existing hardware plan. To modify settings enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
CloudDatastore | Specifies the cloud storage you want to modify. Accepts VBRViCloudHardwarePlanDatastore type. | True | Named | True (ByValue, | False |
Datastore | Specifies the cloud provider datastore or datastore cluster. This datastore will be used to provide the storage space to a tenant under a hardware plan. Accepts VBRViDatastore and VBRViDatastoreCluster type. | False | Named | False | False |
StoragePolicy | Specifies the VMware storage policy profile. A datastore with matching profiles will be used. Accepts VBRViStoragePolicy type. | False | Named | False | False |
FriendlyName | Specifies the name of the storage that will be displayed to the tenant. | False | Named | False | False |
Quota | Specifies the amount of disk space you want to provide to a tenant under a hardware plan (GB). Permitted value: 1 to 2097151. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This example shows how to modify cloud storage settings of an existing hardware plan.
- Run Get-VBRCloudHardwarePlan to get the existing hardware plan. Save the result to the $plan variable.
- Get the cloud storage objects of an existing hardware plan. Use the Datastore property of the VBRViCloudHardwarePlan object saved to the $plan variable. Save each cloud storage to a separate variable: $d1, $d2, etc.
- Run Set-VBRViCloudHWPlanDatastore with the $d1 variable to modify the cloud storage settings. Save the result to the $d1new variable.
- Run Set-VBRViCloudHardwarePlan with the $d1new, $d2, etc. variables to assign cloud storage objects to an existing hardware plan.
PS C:\PS> $plan = Get-VBRCloudHardwarePlan PS C:\PS> $d1 = $plan.datastore | Where-Object {$_.FriendlyName -eq "Cloud Replicas ABC"} PS C:\PS> $d2 = $plan.datastore | Where-Object {$_.FriendlyName -eq "Cloud Replicas North"} PS C:\PS> $d1new = Set-VBRViCloudHWPlanDatastore -CloudDatastore $d1 -FriendlyName "Cloud Replicas ABC Extended" -Quota 950 PS C:\PS> Set-VBRViCloudHardwarePlan -HardwarePlan $plan -Datastore $d1new, $d2 |
Related Commands