Set-VBRHvCloudHWPlanDatastore
Short Description
Modifies Hyper-V cloud storage for tenants replication resources.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Requires a VCP license.
Syntax
Set-VBRHvCloudHWPlanDatastore -CloudDatastore <VBRHvCloudHardwarePlanDatastore> [-DatastorePath <string>] [-FriendlyName <string>] [-Quota <int>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the settings of a selected cloud storage in an existing hardware plan.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
CloudDatastore | Specifies the cloud datastore you want to modify. Accepts VBRHvCloudHardwarePlanDatastore type. | True | Named | True (ByValue, | False |
DatastorePath | Specifies the path to the folder on the cloud provider host that is used in the hardware plan. This folder will be used to provide the storage space to a tenant under a hardware plan. | 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). | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example
This example shows how to modify cloud storage settings of an existing hardware plan.
You will need to perform the following steps:
- 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 VBRHvCloudHardwarePlan object saved to the $plan variable. Save each cloud storage to a separate variable: $d1, $d2, etc.
- Run Set-VBRHvCloudHWPlanDatastore with the $d1 variable to modify the cloud storage settings. Save the result to the $d1new variable.
- Run Set-VBRHvCloudHardwarePlan with the $d1new, $d2, etc. variables to assign cloud storage objects to 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-VBRHvCloudHWPlanDatastore -CloudDatastore $d1 -FriendlyName "Cloud Replicas ABC Exte nded" -Quota 950 Set-VBRHvCloudHardwarePlan -HardwarePlan $plan -Datastore $d1new, $d2 |
Related Commands