< Back

Add-AzureRmRouteFilterRuleConfig

Tue Jan 29, 2019 9:53 pm

NAME Add-AzureRmRouteFilterRuleConfig



SYNOPSIS

Adds a route filter rule to a route filter.





SYNTAX

Add-AzureRmRouteFilterRuleConfig -Access {Allow | Deny} -CommunityList <System.Collections.Generic.List`1[System.String]> [-DefaultProfile

<IAzureContextContainer>] [-Force] -Name <String> -RouteFilter <PSRouteFilter> -RouteFilterRuleType {Community} [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Access <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-CommunityList <System.Collections.Generic.List`1[System.String]>

The list of community value that route filter will filter on



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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



-Force [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RouteFilter <PSRouteFilter>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RouteFilterRuleType <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

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

PSRouteFilter

Parameter 'RouteFilter' accepts value of type 'PSRouteFilter' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSRouteFilter







NOTES





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



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



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.







RELATED LINKS

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

Get-AzureRmRouteFilterRuleConfig

Get-AzureRmRouteFilter

New-AzureRmRouteFilterRuleConfigConfig

Remove-AzureRmRouteFilterRuleConfigConfig

Set-AzureRmRouteFilterRuleConfigConfig

Set-AzureRmRouteFilter