你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzNetworkFabricNni

Configuration used to setup CE-PE connectivity PUT Method.

Syntax

New-AzNetworkFabricNni
   -Name <String>
   -NetworkFabricName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   -UseOptionB <String>
   [-EgressAclId <String>]
   [-ExportRoutePolicy <IExportRoutePolicyInformation>]
   [-ImportRoutePolicy <IImportRoutePolicyInformation>]
   [-IngressAclId <String>]
   [-IsManagementType <String>]
   [-Layer2Configuration <ILayer2Configuration>]
   [-NniType <String>]
   [-NpbStaticRouteConfiguration <INpbStaticRouteConfiguration>]
   [-OptionBLayer3Configuration <INetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkFabricNni
   -Name <String>
   -NetworkFabricName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   -JsonString <String>
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkFabricNni
   -Name <String>
   -NetworkFabricName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   -JsonFilePath <String>
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkFabricNni
   -Name <String>
   -NetworkFabricInputObject <IManagedNetworkFabricIdentity>
   -UseOptionB <String>
   [-EgressAclId <String>]
   [-ExportRoutePolicy <IExportRoutePolicyInformation>]
   [-ImportRoutePolicy <IImportRoutePolicyInformation>]
   [-IngressAclId <String>]
   [-IsManagementType <String>]
   [-Layer2Configuration <ILayer2Configuration>]
   [-NniType <String>]
   [-NpbStaticRouteConfiguration <INpbStaticRouteConfiguration>]
   [-OptionBLayer3Configuration <INetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkFabricNni
   -Name <String>
   -NetworkFabricInputObject <IManagedNetworkFabricIdentity>
   -Body <INetworkToNetworkInterconnect>
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Configuration used to setup CE-PE connectivity PUT Method.

Examples

Example 1: Create the Network To Network Interconnect Resource

$optionBLayer3Configuration = @{
    PrimaryIpv4Prefix = "172.31.0.0/31"
    SecondaryIpv4Prefix = "172.31.0.20/31"
    PeerAsn = 28
    VlanId = 501
}
$layer2Configuration = @{
    Interface = @("/subscriptions//resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabrics/example-fabric/networkToNetworkInterconnects/example-interface")
    Mtu = 1500
}
$importRoutePolicy = @{
    ImportIpv4RoutePolicyId = $global:config.nni.importIpv4RoutePolicyId
    ImportIpv6RoutePolicyId = $global:config.nni.importIpv6RoutePolicyId
}
$exportRoutePolicy = @{
    ExportIpv4RoutePolicyId = $global:config.nni.exportIpv4RoutePolicyId
    ExportIpv6RoutePolicyId = $global:config.nni.exportIpv6RoutePolicyId
}

New-AzNetworkFabricNni -Name $name -NetworkFabricName $nfName -ResourceGroupName $resourceGroupName -UseOptionB "True" -IsManagementType "True" -Layer2Configuration $layer2Configuration -NniType "CE" -OptionBLayer3Configuration $optionBLayer3Configuration -ExportRoutePolicy $ExportRoutePolicy -ImportRoutePolicy $importRoutePolicy

AdministrativeState ConfigurationState EgressAclId ExportRoutePolicy Id
------------------- ------------------ ----------- ----------------- --
Disabled            Succeeded                                        /subscriptions/<identity>/resourceGroups/nfa-tool-t…

This command creates the Network To Network Interconnect resource.

Parameters

-AsJob

Run the command as a job

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

-Body

The Network To Network Interconnect resource definition.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EgressAclId

Egress Acl. ARM resource ID of Access Control Lists.

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

-ExportRoutePolicy

Export Route Policy configuration.

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

-ImportRoutePolicy

Import Route Policy configuration.

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

-IngressAclId

Ingress Acl. ARM resource ID of Access Control Lists.

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

-IsManagementType

Configuration to use NNI for Infrastructure Management. Example: True/False.

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

-JsonFilePath

Path of Json file supplied to the Create operation

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

-JsonString

Json string supplied to the Create operation

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

-Layer2Configuration

Common properties for Layer2 Configuration.

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

-Name

Name of the Network to Network Interconnect.

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

-NetworkFabricInputObject

Identity Parameter

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

-NetworkFabricName

Name of the Network Fabric.

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

-NniType

Type of NNI used. Example: CE | NPB

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

-NoWait

Run the command asynchronously

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

-NpbStaticRouteConfiguration

NPB Static Route Configuration properties.

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

-OptionBLayer3Configuration

Common properties for Layer3Configuration.

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

-ResourceGroupName

The name of the resource group. The name is case insensitive.

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

-SubscriptionId

The ID of the target subscription. The value must be an UUID.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UseOptionB

Based on this option layer3 parameters are mandatory. Example: True/False

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IManagedNetworkFabricIdentity

INetworkToNetworkInterconnect

Outputs

INetworkToNetworkInterconnect