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

-Datastore  <Datastore[]>
-ProviderVdc  <ProviderVdc>
[-Server  <CIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Datastore
Datastore[] named
  • pipeline
  • Specifies one or more datastores from a vCenter Server system that you want to add to a provider vDC.
    required
    ProviderVdc
    ProviderVdc named Specifies the provider vDC to which you want to add the datastore.
    optional
    Server
    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

    Feedback

    Was this page helpful?