Get-AzRedisCache
Ottiene una cache Redis.
Sintassi
Get-AzRedisCache
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Descrizione
Il cmdlet Get-AzRedisCache
Esempio
Esempio 1: Ottenere una cache Redis in base al 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 : []
Questo comando ottiene la Cache Redis denominata myexists.
Esempio 2: Ottenere ogni Cache Redis in un gruppo di risorse
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 : []
Questo comando ottiene ogni Cache Redis nel gruppo di risorse specificato.
Esempio 3: Ottenere ogni Cache Redis nella sottoscrizione corrente
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 : []
Questo comando ottiene tutte le cache Redis nella sottoscrizione corrente.
Parametri
-DefaultProfile
Credenziali, account, tenant e sottoscrizione usati per la comunicazione con Azure.
Tipo: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-Name
Specifica il nome della cache Redis da ottenere.
Usare con il parametro
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-ResourceGroupName
Specifica il nome del gruppo di risorse che contiene cache Redis da ottenere. Se si specifica solo il parametro ResourceGroupName, questa operazione ottiene ogni cache Redis nel gruppo di risorse specificato.
Tipo: | String |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | False |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |