Get-VBRCloudDatastore
Short Description
Returns datastores or disk volumes allocated to you under your cloud resources.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides three parameter sets.
- For looking for datastores or volumes by name:
- For looking for datastores or volumes of a selected cloud service provider:
- For looking for datastores or volumes by ID:
Detailed Description
This cmdlet returns datastores (for VMware) or volumes (for Hyper-V) in your cloud resources.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Name | Specifies the name of the datastore or volume you want to get. | False | Named | False | False |
CloudServer | Specifies the cloud service provider. The cmdlet will return the datastores or volumes provided by this cloud service provider. Accepts VBRCloudServer type. | False | Named | True (ByValue, | False |
Id | Specifies the ID of the datastore or volume you want to get. | 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.
Return Type
Example 1
This command returns cloud datastore named "Cloud Replicas".
Example 2
This example shows how to return cloud datastores located on the cloud server named "Hyper-V Silver".
- Run Get-VBRCloudServer to get the Hyper-V Silver server and save it to the $cloudServer variable.
- Run Get-VBRCloudDatastore with the saved variable.
$cloudServer = Get-VBRCloudServer -Name "Hyper-V Silver" Get-VBRCloudDatastore -CloudServer $cloudServer |
Related Commands