Edit

Share via


New-AzNetworkManagerRoutingRuleNextHop

Creates a network manager routing rule next hop.

Syntax

Default (Default)

New-AzNetworkManagerRoutingRuleNextHop
    [-NextHopAddress <String>]
    -NextHopType <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The New-AzNetworkManagerRoutingRuleNextHop cmdlet creates a network manager routing rule next hop.

Examples

Example 1

New-AzNetworkManagerRoutingRuleNextHop -NextHopAddress "ApiManagement" -NextHopType "ServiceTag"
NextHopAddress	   NextHopType
------------------ -----------------
ApiManagement      ServiceTag

Creates a network manager service tag routing rule next hop.

Example 2

New-AzNetworkManagerRoutingRuleNextHop -NextHopAddress "10.0.0.1" -NextHopType "AddressPrefix"
NextHopAddress	   NextHopType
------------------ -----------------
10.0.0.1		   AddressPrefix

Creates a network manager routing rule next hop object.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NextHopAddress

NextHopAddress

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-NextHopType

NextHopAddress NextHopType.

Parameter properties

Type:String
Default value:None
Accepted values:Internet, NoNextHop, VirtualAppliance, VirtualNetworkGateway, VnetLocal
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

PSNetworkManagerRoutingRuleDestination