< Back

New-vRAPackage

Sat Jan 18, 2020 10:02 pm

NAME New-vRAPackage



SYNOPSIS

Create a vRA Content Package





SYNTAX

New-vRAPackage -Name <String> [-Description <String>] -Id <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]



New-vRAPackage -Name <String> [-Description <String>] -ContentName <String[]> [-WhatIf] [-Confirm]

[<CommonParameters>]



New-vRAPackage [-Description <String>] -JSON <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Create a vRA Package





PARAMETERS

-Name <String>

Content Package Name



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Description <String>

Content Package Description



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <String[]>

A list of content Ids to include in the Package



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ContentName <String[]>

A list of content names to include in the Package



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-JSON <String>

Body text to send in JSON format



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String.





OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-vRAPackage -Name Package01 -Description "This is Content Package 01" -Id

"58e10956-172a-48f6-9373-932f99eab37a","0c74b085-dbc1-4fea-9cbf-a1601f668a1f"













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>New-vRAPackage -Name Package01 -Description "This is Content Package 01" -ContentName

"Blueprint01","Blueprint02"













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-vRAContent | New-vRAPackage -Name Package01 - Description "This is Content Package 01"













-------------------------- EXAMPLE 4 --------------------------



PS C:\\>$JSON = @"



{

"name":"Package01",

"description":"This is Content Package 01",

"contents":[ "58e10956-172a-48f6-9373-932f99eab37a","0c74b085-dbc1-4fea-9cbf-a1601f668a1f" ]

}

"@

$JSON | New-vRAPackage











RELATED LINKS