PowerCLI Reference

Add-CIDatastore

Synopsis

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

Syntax

Add-CIDatastore [-ProviderVdc] <ProviderVdc> -Datastore <Datastore[]> [-Server <CIServer[]>] [-Confirm] [-WhatIf] [<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)
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 the Connect-CIServer cmdlet.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.