Get-AzRedisCache
Hämtar en Redis Cache.
Syntax
Get-AzRedisCache
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzRedisCache hämtar den angivna Azure Redis Cache. Om du inte anger några parametrar hämtar den här åtgärden varje Redis Cache för den aktuella prenumerationen.
Exempel
Exempel 1: Hämta en Redis Cache efter namn
Get-AzRedisCache -Name "myexists"
ResourceGroupName : myGroup
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/myexists
Location : North Central US
Name : myexists
Type : Microsoft.Cache/Redis
HostName : myexists.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : False
RedisVersion : 2.8
Size : 1GB
Sku : Basic
Tag : {}
Zone : []
Det här kommandot hämtar Redis Cache med namnet myexists.
Exempel 2: Hämta varje Redis Cache i en resursgrupp
Get-AzRedisCache -ResourceGroupName "myGroup"
ResourceGroupName : myGroup
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/myexists
Location : North Central US
Name : myexists
Type : Microsoft.Cache/Redis
HostName : myexists.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : False
RedisVersion : 2.8
Size : 1GB
Sku : Basic
Tag : {}
Zone : []
ResourceGroupName : myGroup
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/myearlier
Location : North Central US
Name : myearlier
Type : Microsoft.Cache/Redis
HostName : myearlier.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : True
RedisVersion : 2.8
Size : 250MB
Sku : Standard
Tag : {}
Zone : []
Det här kommandot hämtar varje Redis Cache i den angivna resursgruppen.
Exempel 3: Hämta varje Redis Cache i den aktuella prenumerationen
Get-AzRedisCache
ResourceGroupName : myGroup
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/myexists
Location : North Central US
Name : myexists
Type : Microsoft.Cache/Redis
HostName : myexists.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : False
RedisVersion : 2.8
Size : 1GB
Sku : Basic
Tag : {}
Zone : []
ResourceGroupName : myGroup
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup/providers/Microsoft.Cache/Redis/myearlier
Location : North Central US
Name : myearlier
Type : Microsoft.Cache/Redis
HostName : myearlier.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : True
RedisVersion : 2.8
Size : 250MB
Sku : Standard
Tag : {}
Zone : []
ResourceGroupName : myGroup2
Id : /subscriptions/a559b6fd-3a84-40bb-a450-b0db5ed37dfe/resourceGroups/myGroup2/providers/Microsoft.Cache/Redis/myearlier2
Location : North Central US
Name : myearlier2
Type : Microsoft.Cache/Redis
HostName : myearlier2.redis.cache.windows.net
Port : 6379
ProvisioningState : succeeded
SslPort : 6380
RedisConfiguration : {}
EnableNonSslPort : False
RedisVersion : 2.8
Size : 250MB
Sku : Basic
Tag : {}
Zone : []
Det här kommandot hämtar varje Redis Cache i den aktuella prenumerationen.
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
Anger namnet på Redis Cache som ska hämtas. Använd med parametern ResourceGroupName.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Anger namnet på den resursgrupp som innehåller Redis Cache som ska hämtas. Om du bara anger parametern ResourceGroupName hämtar den här åtgärden varje Redis Cache i den angivna resursgruppen.
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