Set-VBRViCloudHWPlanDatastore
Short Description
Modifies VMware cloud storage for tenants replication resources.
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Requires a VCP license.
Syntax
|
Set-VBRViCloudHWPlanDatastore -CloudDatastore <VBRViCloudHardwarePlanDatastore> [-Datastore <VBRViDatastoreBase>] [-StoragePolicy <VBRViStoragePolicy>] [-FriendlyName <String>] [-Quota <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the settings of a selected cloud storage in an existing hardware plan.
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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CloudDatastore |
Specifies the cloud storage you want to modify.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
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 the |
|
False |
Named |
False |
|
FriendlyName |
Specifies the name of the storage that will be displayed to the tenant. |
|
False |
Named |
False |
|
Quota |
Specifies the amount of disk space you want to provide to a tenant under a hardware plan (Gb).
Permitted value: |
|
False |
Named |
False |
|
StoragePolicy |
Specifies the VMware storage policy profile. The cmdlet will use datastores with this policy profile.
Note: If you specify the parameter value as
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRViCloudHardwarePlanDatastore
Examples
Modifying Cloud Storage Settings for Existing Hardware Plan
This example shows how to modify cloud storage settings of an existing hardware plan.
|
$plan = Get-VBRCloudHardwarePlan $d1 = $plan.datastore | Where-Object {$_.FriendlyName -eq "Cloud Replicas ABC"} $d2 = $plan.datastore | Where-Object {$_.FriendlyName -eq "Cloud Replicas North"} $d1new = Set-VBRViCloudHWPlanDatastore -CloudDatastore $d1 -FriendlyName "Cloud Replicas ABC Extended" -Quota 950 Set-VBRViCloudHardwarePlan -HardwarePlan $plan -Datastore $d1new, $d2 |
Perform the following steps:
- Run the
Get-VBRCloudHardwarePlanReturns existing hardware plans. cmdlet. Save the result to the$planvariable. - Use the
Datastoreproperty of theVBRViCloudHardwarePlanobject saved to the$planvariable. Pipe the output to theWhere-Objectcmdlet. Specify the following settings:- Provide the
$_.automatic variable. - Provide the
FriendlyNameproperty. - Specify the
eqcomparison operator value.
Save each cloud storage to a separate variable:
$d1,$d2, and so on. - Provide the
- Run the
Set-VBRViCloudHWPlanDatastorecmdlet. Set the$d1variable as theCloudDatastoreparameter value. Specify theFriendlyNameand theQuotaparameter values. Save the result to the$d1newvariable. - Run the
Set-VBRViCloudHardwarePlanModifies VMware hardware plans. cmdlet. Set the$planvariable as theHardwarePlanparameter value. Set the$d1newand$d2variables as theDatastoreparameter value.
Related Commands
Get-VBRCloudDatastoreReturns datastores or disk volumes allocated to you under your cloud resources.Get-VBRCloudHardwarePlanReturns existing hardware plans.Set-VBRViCloudHardwarePlanModifies VMware hardware plans.Find-VBRViStoragePolicyLooks for VMware storage policy profiles.