Add-​Azure​Rm​Route​Filter​Rule​Config

Adds a route filter rule to a route filter.

Syntax

Add-AzureRmRouteFilterRuleConfig
   -Access <String>
   -CommunityList <System.Collections.Generic.List`1[System.String]>
   [-Force]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   -RouteFilter <PSRouteFilter>
   -RouteFilterRuleType <String>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Add-AzureRmRouteFilterRuleConfig cmdlet adds a route filter rule to an Azure route filter.

Examples

-------------------------- Example 1: Add a route filter rule to a route filter --------------------------

@{paragraph=PS C:\>}











PS C:\>$RouteFilter = Get-AzureRmRouteFilter -ResourceGroupName "ResourceGroup11" -Name "routefilter01"
					  PS C:\> Add-AzureRmRouteFilterRuleConfig -Name "rule13" -Access Allow -RouteFilterRuleType Community -RouteFilter $RouteFilter

The first command gets a route filter named routefilter01 by using the Get-AzureRmRouteFilter cmdlet. The command stores the filter in the $RouteFilter variable.

Required Parameters

-Access

Specifies the access of the route filter rule, Valid values are Deny or Allow.

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

The list of community value that route filter will filter on

Type:System.Collections.Generic.List`1[System.String]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies a name of the route filter rule to add to the route filter.

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

Specifies the route filter to which this cmdlet adds a route filter rule.

Type:PSRouteFilter
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RouteFilterRuleType

Specifies the route filter rule type. Valid values are: Community

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Do not ask for confirmation if you want to overrite a resource

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

@{Text=}

Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

@{Text=}

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Notes

Keywords: azure, azurerm, arm, resource, management, manager, network, networking