PowerCLI Reference

Add-CIDatastore

Synopsis

This cmdlet adds one or more datastores to a provider virtual datacenter (vDC).

Syntax

Add-CIDatastore -Datastore <Datastore[]> [-ProviderVdc] <ProviderVdc> [-Server <CIServer[]>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Get-CIDatastore
Online version

Detailed 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

NameTypeDescriptionRequired?Pipeline InputDefault Value
ProviderVdcProviderVdcSpecifies the provider vDC to which you want to add the datastore.truefalse
ConfirmSwitchParameterIf 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.falsefalse
DatastoreDatastore[]Specifies one or more datastores from a vCenter Server system that you want to add to a provider vDC.truetrue (ByValue)
InformationActionActionPreferencefalsefalse
InformationVariableStringfalsefalse
PipelineVariableStringfalsefalse
ServerCIServer[]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.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

One or more CIDatastore objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.