< Back

Add-vRACustomForm

Sat Jan 18, 2020 9:54 pm

NAME Add-vRACustomForm



SYNOPSIS

Add a vRA Custom Form for a Blueprint





SYNTAX

Add-vRACustomForm [-BlueprintId] <String[]> [-Body] <String> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Add a vRA Custom Form for a Blueprint





PARAMETERS

-BlueprintId <String[]>

Specify the ID of a Blueprint



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Body <String>

The JSON string containing the custom form



Required? true

Position? 2

Default value

Accept pipeline input? false

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.String





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



PS C:\\>$JSON = Get-Content -Path ~/CentOS.json -Raw



Add-vRACustomForm -BlueprintId "CentOS" -Body $JSON









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



PS C:\\>$JSON = Get-Content -Path ~/CentOS.json -Raw



Get-vRABlueprint -Name "CentOS" | Add-vRACustomForm -Body $JSON









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



PS C:\\>$Form = Get-vRABlueprint -Name "CentOS" | Get-vRACustomForm



Add-vRACustomForm -BlueprintId "RHEL7" | Add-vRACustomForm -Body $Form.JSON











RELATED LINKS