< Back

Get-AzureRmNetworkInterface

Tue Jan 29, 2019 9:54 pm

NAME Get-AzureRmNetworkInterface



SYNOPSIS

Gets a network interface.





SYNTAX

Get-AzureRmNetworkInterface [-DefaultProfile <IAzureContextContainer>] -ExpandResource <String> -Name <String> -ResourceGroupName <String>

[<CommonParameters>]



Get-AzureRmNetworkInterface [-DefaultProfile <IAzureContextContainer>] -ExpandResource <String> -Name <String> -ResourceGroupName <String>

-VirtualMachineIndex <String> -VirtualMachineScaleSetName <String> [<CommonParameters>]



Get-AzureRmNetworkInterface [-DefaultProfile <IAzureContextContainer>] [-Name <String>] [-ResourceGroupName <String>] [<CommonParameters>]



Get-AzureRmNetworkInterface [-DefaultProfile <IAzureContextContainer>] [-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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ExpandResource <String>





Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VirtualMachineIndex <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VirtualMachineScaleSetName <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSNetworkInterface







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... kinterface

New-AzureRmNetworkInterface

Remove-AzureRmNetworkInterface

Set-AzureRmNetworkInterface