< Back

Get-AzureRmRedisCacheFirewallRule

Tue Jan 29, 2019 10:04 pm

NAME Get-AzureRmRedisCacheFirewallRule



SYNOPSIS

Get firewall rules set on Redis Cache.





SYNTAX

Get-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -Name <String> [-ResourceGroupName <String>] [-RuleName <String>]

[<CommonParameters>]





DESCRIPTION

If RuleName parameter if provided, Get-AzureRmRedisCacheFirewallRule cmdlet gets detail about the specified firewall rule on Azure Redis Cache. If

only Name is specified this operation gets all firewall rules available on that Redis Cache.





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



-Name <String>

Name of redis cache.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Name of resource group in which cache exists.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-RuleName <String>

Name of firewall rule.



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

System.String

You can pipe input to this cmdlet by name, but not by value.





OUTPUTS

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.RedisCache.Models.PSRedisFirewallRule, Microsoft.Azure.Commands.RedisCache,

Version=4.0.1.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1: Get a single firewall rule



PS C:\\>Get-AzureRmRedisCacheFirewallRule -Name "mycache" -RuleName "ruleone"



ResourceGroupName : myGroup

Name : mycache

FirewallRuleId :

/subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/mycache/firewallRules/ruleone

RuleName : ruleone

Type : Microsoft.Cache/Redis/firewallRules

StartIP : 10.0.0.1

EndIP : 10.0.0.32



This command gets firewall rule named ruleone from Redis Cache named mycache.





Example 2: Get all firewall rules



PS C:\\>Get-AzureRmRedisCacheFirewallRule -Name "mycache"



ResourceGroupName : myGroup

Name : mycache

FirewallRuleId :

/subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/mycache/firewallRules/ruleone

RuleName : ruleone

Type : Microsoft.Cache/Redis/firewallRules

StartIP : 10.0.0.1

EndIP : 10.0.0.32



ResourceGroupName : myGroup

Name : mycache

FirewallRuleId :

/subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/mycache/firewallRules/ruletwo

RuleName : ruletwo

Type : Microsoft.Cache/Redis/firewallRules

StartIP : 10.0.0.33

EndIP : 10.0.0.64



This command gets all firewall rules from Redis Cache named mycache.







RELATED LINKS

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

New-AzureRmRedisCacheFirewallRule

Remove-AzureRmRedisCacheFirewallRule

Get-AzureRmRedisCache

New-AzureRmRedisCache

Remove-AzureRmRedisCache

Reset-AzureRmRedisCache