你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzRedisEnterpriseCache
获取有关 Redis Enterprise 群集及其关联数据库的信息。
语法
Get-AzRedisEnterpriseCache
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzRedisEnterpriseCache
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
-ClusterName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzRedisEnterpriseCache
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取有关 Redis Enterprise 群集及其关联数据库的信息。
示例
示例 1:按名称获取 Redis Enterprise 缓存
Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache"
Location Name Type Zone Database
-------- ---- ---- ---- --------
West US MyCache Microsoft.Cache/redisEnterprise {default}
此命令获取有关名为 MyCache 的 Redis Enterprise 缓存的信息。
示例 2:列出资源组中的每个 Redis Enterprise 缓存
Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup"
Location Name Type Zone Database
-------- ---- ---- ---- --------
East US MyCache1 Microsoft.Cache/redisEnterprise {default}
East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default}
此命令获取有关指定资源组中每个 Redis Enterprise 缓存的信息。
示例 3:列出订阅中的每个 Redis Enterprise 缓存
Get-AzRedisEnterpriseCache
Location Name Type Zone Database
-------- ---- ---- ---- --------
East US MyCache1 Microsoft.Cache/redisEnterprise {default}
East US MyCache2 Microsoft.Cache/redisEnterprise {1, 2, 3} {default}
West US MyCache3 Microsoft.Cache/redisEnterprise {default}
Central US MyCache4 Microsoft.Cache/redisEnterprise {1, 2, 3} {default}
此命令获取有关当前订阅中每个 Redis Enterprise 缓存的信息。
参数
-ClusterName
Redis Enterprise 群集的名称。
类型: | String |
别名: | Name |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |