Get-AzureRmRedisCache
Gets a Redis Cache.
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
Get-AzureRmRedisCache
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzureRmRedisCache cmdlet gets the specified Azure Redis Cache. If you specify no parameters, this operation gets every Redis Cache for the current subscription.
Examples
Example 1: Get a Redis Cache by name
PS C:\>Get-AzureRmRedisCache -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 : []
This command gets the Redis Cache named myexists.
Example 2: Get every Redis Cache in a resource group
PS C:\>Get-AzureRmRedisCache -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 : []
This command gets every Redis Cache in the specified resource group.
Example 3: Get every Redis Cache in the current subscription
PS C:\>Get-AzureRmRedisCache
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 : []
This command gets every Redis Cache in the current subscription.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of the Redis Cache to get. Use with the ResourceGroupName parameter.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Specifies the name of the resource group that contains the Redis Cache to get. If you specify only the ResourceGroupName parameter, this operation gets every Redis Cache in the specified resource group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |