Editar

Compartilhar via


New-AzNetworkManagerRoutingRuleNextHop

Creates a network manager routing rule next hop.

Syntax

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.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NextHopAddress

NextHopAddress

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-NextHopType

NextHopAddress NextHopType.

Type:String
Accepted values:Internet, NoNextHop, VirtualAppliance, VirtualNetworkGateway, VnetLocal
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

PSNetworkManagerRoutingRuleDestination