Get-AzRouteFilterRuleConfig

Gets a route filter rule in a route filter.

Syntax

Get-AzRouteFilterRuleConfig
   [-Name <String>]
   -RouteFilter <PSRouteFilter>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzRouteFilterRuleConfig cmdlet gets a route filter rule or a list of route filter rules in a route filter.

Examples

Example 1

$rf = Get-AzRouteFilter -Name "MyRouteFilter" -ResourceGroupName "MyResourceGroup"
Get-AzRouteFilterRuleConfig -RouteFilter $rf -Name "Rule01"
Get-AzRouteFilterRuleConfig -RouteFilter $rf

The first command gets the route filter named MyRouteFilter, and then stores it in the variable $rf. The second command gets the route filter rule named Rule01 associated with that route filter. The third command gets a list of route filter rules associated with that route filter.

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the route filter rule

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

-RouteFilter

The RouteFilter

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

Inputs

PSRouteFilter

Outputs

PSRouteFilterRule