Add-CIDatastore
This cmdlet adds one or more datastores from a vCenter Server system to a provider virtual datacenter (vDC). Note: This cmdlet is only available to Provider Administrators.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
Datastore[] | named |
|
Specifies one or more datastores from a vCenter Server system that you want to add to a provider vDC. | required |
|
ProviderVdc | named |
|
Specifies the provider vDC to which you want to add the datastore. | optional |
|
CIServer[] | named |
|
Specifies the cloud servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-CIServer cmdlet. |
Output
VMware.VimAutomation.Cloud.Types.V1.CIDatastore
Examples
Example 1
Get-Datastore -Name *cloud* | Add-CIDatastore -ProviderVdc 'MyProviderVdc'
Adds all datastores with names that contain "cloud" to the specified provider vDC.
Related Commands
CIDatastore
This cmdlet retrieves the datastores available on a cloud server.
This cmdlet adds one or more datastores to a provider virtual data center (vDC).