Get-​Azure​Rm​Network​Interface

Gets a network interface.

Syntax

Get-AzureRmNetworkInterface
   -ExpandResource <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -ResourceGroupName <String>
   [<CommonParameters>]
Get-AzureRmNetworkInterface
   -ExpandResource <String>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -ResourceGroupName <String>
   -VirtualMachineIndex <String>
   -VirtualMachineScaleSetName <String>
   [<CommonParameters>]
Get-AzureRmNetworkInterface
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Name <String>]
   [-ResourceGroupName <String>]
   [<CommonParameters>]
Get-AzureRmNetworkInterface
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Name <String>]
   -ResourceGroupName <String>
   [-VirtualMachineIndex <String>]
   [-VirtualMachineScaleSetName <String>]
   [<CommonParameters>]

Description

The Get-AzureRmNetworkInterface cmdlet gets an Azure network interface or a list of Azure network interfaces in a resource group.

Examples

Example 1: Get all network interfaces

PS C:\>Get-AzureRmNetworkInterface

This command gets all network interfaces for the current subscription.

Example 2: Get all network interfaces with a specific provisioning state

PS C:\>Get-AzureRmNetworkInterface -ResourceGroupName "ResourceGroup1" | Where-Object {$_.ProvisioningState -eq 'Succeeded'}

This command gets all network interfaces in the resource group named ResourceGroup1 that has a provisioning state of succeeded.

Required Parameters

-ExpandResource
Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the network interface that this cmdlet gets.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group from which this cmdlet gets network interfaces.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VirtualMachineIndex

Specifies the virtual machine index of the virtual machine scale set from which this cmdlet gets network interfaces.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VirtualMachineScaleSetName

Specifies the name of the virtual machine scale set from which this cmdlet gets network interfaces.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False