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

Get-AzNetworkFabricInterface

Get the Network Interface resource details.

Syntax

Get-AzNetworkFabricInterface
   -NetworkDeviceName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkFabricInterface
   -Name <String>
   -NetworkDeviceInputObject <IManagedNetworkFabricIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkFabricInterface
   -Name <String>
   -NetworkDeviceName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzNetworkFabricInterface
   -InputObject <IManagedNetworkFabricIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get the Network Interface resource details.

Examples

Example 1: List Network Interfaces

Get-AzNetworkFabricInterface -NetworkDeviceName $deviceName -ResourceGroupName $resourceGroupName

Name        SystemDataCreatedAt SystemDataCreatedBy       SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy           SystemDataLastModifiedByType ResourceGroupName
----        ------------------- -------------------       ----------------------- ------------------------ ------------------------           ---------------------------- -----
Ethernet1   09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet2   09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet9   09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet10  09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet11  09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet12  09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet17  09/22/2023 06:53:47 <identity>                Application             09/22/2023 06:53:47      <identity>                         Application                  nfa-…
Ethernet47  09/22/2023 06:53:48 <identity>                Application             09/22/2023 06:53:48      <identity>                         Application                  nfa-…
Ethernet48  09/22/2023 06:53:48 <identity>                Application             09/22/2023 06:53:48      <identity>                         Application                  nfa-…
Ethernet49  09/22/2023 06:53:48 <identity>                Application             09/22/2023 06:53:48      <identity>                         Application                  nfa-…
Ethernet50  09/22/2023 06:53:48 <identity>                Application             09/22/2023 06:53:48      <identity>                         Application                  nfa-…
Management1 09/22/2023 06:53:48 <identity>                Application             09/22/2023 06:53:48      <identity>                         Application                  nfa-…

This command gets details of the given Network Interfaces.

Example 2: Get Network Interface

Get-AzNetworkFabricInterface -Name $name -NetworkDeviceName $deviceName -ResourceGroupName $resourceGroupName

AdministrativeState Annotation ConnectedTo Id
------------------- ---------- ----------- --
Enabled                        AR-CE1-MA1  /subscriptions/<identity>/resourceGroups/nfa-tool-ts-powershell-rg092123/providers/Microsoft.ManagedNetworkFabric/netwo…

This command gets details of the given Network Interface.

Parameters

-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

-InputObject

Identity Parameter

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

-Name

Name of the Network Interface.

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

-NetworkDeviceInputObject

Identity Parameter

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

-NetworkDeviceName

Name of the Network Device.

Type:String
Position:Named
Default value:None
Required:True
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

Inputs

IManagedNetworkFabricIdentity

Outputs

INetworkInterface