Syntax
Add-CIDatastore [-ProviderVdc] <ProviderVdc> -Datastore <Datastore[]> [-Server <CIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Get-CIDatastoreDetailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
ProviderVdc | ProviderVdc | Specifies the provider vDC to which you want to add the datastore. | true | False | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
Datastore | Datastore[] | Specifies one or more datastores from a vCenter Server system that you want to add to a provider vDC. | true | True (ByValue) | |
Server | CIServer[] | 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. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
One or more CIDatastore objectsNotes
You can run this cmdlet only against vCloud Director 1.5.x environments.Examples
-------------------------- Example 1 --------------------------
Get-Datastore -Name *cloud* | Add-CIDatastore -ProviderVdc 'MyProviderVdc'
Adds all datastores with names that contain "cloud" to the specified provider vDC.