< Back
New-AzureRmRedisCacheFirewallRule
Post
NAME New-AzureRmRedisCacheFirewallRule
SYNOPSIS
Create a firewall rule on a Redis Cache.
SYNTAX
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -InputObject <RedisCacheAttributes> -RuleName
<String> -StartIP <String> [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -Name <String> [-ResourceGroupName <String>]
-RuleName <String> -StartIP <String> [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -ResourceId <String> -RuleName <String> -StartIP
<String> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a firewall rule on 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
-EndIP <String>
Ending IP address.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-InputObject <RedisCacheAttributes>
object of type RedisCacheAttributes
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
-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
-ResourceId <String>
ARM Id of Redis Cache.
Required? true
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
-StartIP <String>
Starting IP address.
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
Microsoft.Azure.Commands.RedisCache.Models.PSRedisFirewallRule
NOTES
Example 1: Create a firewall rule
PS C:\\>New-AzureRmRedisCacheFirewallRule -Name "mycache" -RuleName "ruleone" -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/ruleone
RuleName : ruleone
Type : Microsoft.Cache/Redis/firewallRules
StartIP : 10.0.0.1
EndIP : 10.0.0.32
This command creates firewall rule named ruleone on Redis Cache named mycache.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rewallrule
Get-AzureRmRedisCacheFirewallRule
Remove-AzureRmRedisCacheFirewallRule
Get-AzureRmRedisCache
New-AzureRmRedisCache
Remove-AzureRmRedisCache
Reset-AzureRmRedisCache
SYNOPSIS
Create a firewall rule on a Redis Cache.
SYNTAX
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -InputObject <RedisCacheAttributes> -RuleName
<String> -StartIP <String> [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -Name <String> [-ResourceGroupName <String>]
-RuleName <String> -StartIP <String> [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzureRmRedisCacheFirewallRule [-DefaultProfile <IAzureContextContainer>] -EndIP <String> -ResourceId <String> -RuleName <String> -StartIP
<String> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
Create a firewall rule on 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
-EndIP <String>
Ending IP address.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-InputObject <RedisCacheAttributes>
object of type RedisCacheAttributes
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
-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
-ResourceId <String>
ARM Id of Redis Cache.
Required? true
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
-StartIP <String>
Starting IP address.
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
Microsoft.Azure.Commands.RedisCache.Models.PSRedisFirewallRule
NOTES
Example 1: Create a firewall rule
PS C:\\>New-AzureRmRedisCacheFirewallRule -Name "mycache" -RuleName "ruleone" -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/ruleone
RuleName : ruleone
Type : Microsoft.Cache/Redis/firewallRules
StartIP : 10.0.0.1
EndIP : 10.0.0.32
This command creates firewall rule named ruleone on Redis Cache named mycache.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... rewallrule
Get-AzureRmRedisCacheFirewallRule
Remove-AzureRmRedisCacheFirewallRule
Get-AzureRmRedisCache
New-AzureRmRedisCache
Remove-AzureRmRedisCache
Reset-AzureRmRedisCache