Get-AzRedisCacheFirewallRule
Hämta brandväggsregler som angetts för Redis Cache.
Syntax
Get-AzRedisCacheFirewallRule
[-ResourceGroupName <String>]
-Name <String>
[-RuleName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Om RuleName parametern om det tillhandahålls får Get-AzRedisCacheFirewallRule cmdlet detaljerad information om den angivna brandväggsregeln i Azure Redis Cache. Om endast Namn anges hämtar den här åtgärden alla brandväggsregler som är tillgängliga i Redis Cache.
Exempel
Exempel 1: Hämta en enda brandväggsregel
Get-AzRedisCacheFirewallRule -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
Det här kommandot hämtar brandväggsregeln med namnet ruleone från Redis Cache med namnet mycache.
Exempel 2: Hämta alla brandväggsregler
Get-AzRedisCacheFirewallRule -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
Det här kommandot hämtar alla brandväggsregler från Redis Cache med namnet mycache.
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Namnet på redis cache.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Namnet på resursgruppen där cachen finns.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-RuleName
Namnet på brandväggsregeln.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
Utdata
Relaterade länkar
Azure PowerShell