New-LcmOfflineDepot

This cmdlet creates a new vSphere Lifecycle Manager offline depot from a provided online location.

Syntax

[-Description  <String>]
[-Location  <Uri>]
[-OwnerData  <String>]
[-RunAsync]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Description
String named Provides a description of the depot that you want to create.
optional
Location
Uri named The URL of the depot update file from which to create the offline depot.
optional
OwnerData
String named Any string that you want to associate and store with the depot.
optional
RunAsync
SwitchParameter named Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console.

Output

VMware.VimAutomation.ViCore.Types.V1.Lcm.LcmOfflineDepot

Examples


Example 1

PS C:\> New-LcmOfflineDepot -Location 'http://link/to/offline/depot' -Description 'Company's offline depot' -OwnerData '{depot:security_updates}'

Creates a new offline depot from the depot update file located at http://link/to/offline/depot. OwnerData can be any string that you want to associate with the new depot.

Example 2

PS C:\> New-LcmOfflineDepot -Location 'file:///link/to/offline/depot' -Description 'Company's offline depot' -OwnerData 'Building 1 servers' -RunAsync

Creates a new offline depot from the depot update file located at http://link/to/offline/depot. The command will return a task that continues to run in the background

Related Commands

Feedback

Was this page helpful?