Get-AzRedisCache
Obtém um cache Redis.
Sintaxe
Get-AzRedisCache
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
O cmdlet Get-AzRedisCache obtém o Cache Redis do Azure especificado. Se você não especificar parâmetros, essa operação obterá cada Cache Redis para a assinatura atual.
Exemplos
Exemplo 1: Obter um cache Redis pelo nome
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 : []
Este comando obtém o Cache Redis chamado myexists.
Exemplo 2: Obter cada Cache Redis em um grupo de recursos
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 : []
Este comando obtém cada Cache Redis no grupo de recursos especificado.
Exemplo 3: Obter cada Cache Redis na assinatura atual
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 : []
Este comando obtém cada Cache Redis na assinatura atual.
Parâmetros
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o azure.
Tipo: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-Name
Especifica o nome do Cache Redis a ser obtido. Use com o parâmetro ResourceGroupName.
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | False |
-ResourceGroupName
Especifica o nome do grupo de recursos que contém o Cache Redis a ser obtido.
Se você especificar apenas o parâmetro
Tipo: | String |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | False |
Entradas
Saídas
Ligações Relacionadas
Azure PowerShell