< Back

New-vRAReservationNetworkDefinition

Sat Jan 18, 2020 10:02 pm

NAME New-vRAReservationNetworkDefinition



SYNOPSIS

Creates a new network definition for a reservation.





SYNTAX

New-vRAReservationNetworkDefinition -Type <String> -ComputeResourceId <String> -NetworkPath <String>

[-NetworkProfile <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates a new network definition for a reservation. This cmdlet is used to create a custom

complex network object. One or more of these can be added to an array and passed to New-vRAReservation.





PARAMETERS

-Type <String>

The reservation type

Valid types vRA 7.1 and earlier: Amazon, Hyper-V, KVM, OpenStack, SCVMM, vCloud Air, vCloud Director, vSphere,

XenServer

Valid types vRA 7.2 and later: Amazon EC2, Azure, Hyper-V (SCVMM), Hyper-V (Standalone), KVM (RHEV),

OpenStack, vCloud Air, vCloud Director, vSphere (vCenter), XenServer



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ComputeResourceId <String>

The id of the compute resource



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NetworkPath <String>

The network path



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NetworkProfile <String>

The network profile



Required? false

Position? named

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.Management.Automation.PSObject





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



PS C:\\># Create a network definition for type vSphere in vRA 7.1



$NetworkDefinitionArray = @()

$Network1 = New-vRAReservationNetworkDefinition -Type 'vSphere' -ComputeResourceId

75ae3400-beb5-4b0b-895a-0484413c93b1 -NetworkPath 'VM Network' -NetworkProfile 'Test'

$NetworkDefinitionArray += $Network1









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



PS C:\\># Create a network definition for type vSphere in vRA 7.2 and later



$NetworkDefinitionArray = @()

$Network1 = New-vRAReservationNetworkDefinition -Type 'vSphere (vCenter)' -ComputeResourceId

75ae3400-beb5-4b0b-895a-0484413c93b1 -NetworkPath 'VM Network' -NetworkProfile 'Test'

$NetworkDefinitionArray += $Network1











RELATED LINKS