< Back

Get-AzureRmEffectiveNetworkSecurityGroup

Tue Jan 29, 2019 9:54 pm

NAME Get-AzureRmEffectiveNetworkSecurityGroup



SYNOPSIS

Gets the effective network security group of a network interface.





SYNTAX

Get-AzureRmEffectiveNetworkSecurityGroup [-DefaultProfile <IAzureContextContainer>] -NetworkInterfaceName <String> [-ResourceGroupName <String>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmEffectiveNetworkSecurityGroup cmdlet returns the effective network security group that is applied on a network interface.





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



-NetworkInterfaceName <String>

Specified the name of a network interface.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the resource group of a network interface.



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.PSEffectiveNetworkSecurityGroup







NOTES









Example 1: Get the effective network security group on a network interface



PS C:\\>Get-AzureRmEffectiveNetworkSecurityGroup -NetworkInterfaceName "MyNetworkInterface" -ResourceGroupName "myResourceGroup"



This command gets all of the effective network security rules associated with the network interface named MyNetworkInterface in the resource group

named myResourceGroup.







RELATED LINKS

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

Get-AzureRmEffectiveRouteTable