< Back

Remove-AzureRmRedisCacheFirewallRule

Tue Jan 29, 2019 10:04 pm

NAME Remove-AzureRmRedisCacheFirewallRule



SYNOPSIS

Remove a firewall rule from a Redis Cache.





SYNTAX

Remove-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -InputObject <PSRedisFirewallRule> [-PassThru] [-Confirm]

[-WhatIf] [<CommonParameters>]



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

<String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Remove a firewall rule from a 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



-InputObject <PSRedisFirewallRule>

object of type PSRedisFirewallRule



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

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



-PassThru [<SwitchParameter>]

{{Fill PassThru Description}}



Required? false

Position? named

Default value False

Accept pipeline input? False

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? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

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

System.String







OUTPUTS

System.Boolean







NOTES









Example 1: Remove a single firewall rule



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

True



This command removes a firewall rule named ruleone from Redis Cache named mycache.







RELATED LINKS

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

New-AzureRmRedisCacheFirewallRule

Get-AzureRmRedisCacheFirewallRule

Get-AzureRmRedisCache

New-AzureRmRedisCache

Remove-AzureRmRedisCache

Reset-AzureRmRedisCache