Get-AzRedisEnterpriseCache
Hämtar information om ett Redis Enterprise-kluster och dess associerade databaser.
Syntax
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>]
Description
Hämtar information om ett Redis Enterprise-kluster och dess associerade databaser.
Exempel
Exempel 1: Hämta en Redis Enterprise-cache efter namn
Get-AzRedisEnterpriseCache -ResourceGroupName "MyGroup" -Name "MyCache"
Location Name Type Zone Database
-------- ---- ---- ---- --------
West US MyCache Microsoft.Cache/redisEnterprise {default}
Det här kommandot hämtar information om Redis Enterprise-cachen med namnet MyCache.
Exempel 2: Lista varje Redis Enterprise-cache i en resursgrupp
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}
Det här kommandot hämtar information om varje Redis Enterprise-cache i den angivna resursgruppen.
Exempel 3: Lista varje Redis Enterprise-cache i en prenumeration
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}
Det här kommandot hämtar information om varje Redis Enterprise-cache i den aktuella prenumerationen.
Parametrar
-ClusterName
Namnet på Redis Enterprise-klustret.
Typ: | String |
Alias: | Name |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Namnet på resursgruppen. Namnet är skiftlägesokänsligt.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-SubscriptionId
ID för målprenumerationen.
Typ: | String[] |
Position: | Named |
Standardvärde: | (Get-AzContext).Subscription.Id |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Utdata
Azure PowerShell