Syntax
Add-CIDatastore -Datastore <Datastore[]> [-ProviderVdc] <ProviderVdc> [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<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) | |
InformationAction | ActionPreference | false | false | ||
InformationVariable | String | false | false | ||
PipelineVariable | String | false | false | ||
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 Connect-CIServer. | 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.