Get-AzRedisCacheLink
Redis Cache の geo レプリケーション リンクを取得します。
構文
AllLinksForCache (既定)
Get-AzRedisCacheLink
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
AllLinksForPrimaryCache
Get-AzRedisCacheLink
-PrimaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
SingleLink
Get-AzRedisCacheLink
-PrimaryServerName <String>
-SecondaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
AllLinksForSecondaryCache
Get-AzRedisCacheLink
-SecondaryServerName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
geo レプリケーション リンクの詳細を取得するには、4 つの異なる方法があります。 パラメーター Name または PrimaryServerName または SecondaryServerName を指定します。 名前が指定されると、キャッシュが存在するすべてのリンクが返されます。 PrimaryServerName のみが指定されている場合は、キャッシュがプライマリであるすべてのリンクが返されます。 SecondaryServerName のみが指定されている場合は、キャッシュがセカンダリであるすべてのリンクが返されます。 PrimaryServerName と SecondaryServerName の両方が指定されている場合は、正しいロールを持つ特定のリンクが返されます。
例
例 1: パラメーター セット AllLinksForCache を使用して取得する
Get-AzRedisCacheLink -Name "mycache1"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
このコマンドは、mycache1 という名前の Redis Cache のすべての geo レプリケーション リンクを取得します。
例 2: パラメーター セット AllLinksForPrimaryCache を使用して取得する
Get-AzRedisCacheLink -PrimaryServerName "mycache1"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
このコマンドは、mycache1 という名前の Redis Cache がプライマリである geo レプリケーション リンクを取得します。
例 3: パラメーター セット AllLinksForSecondaryCache を使用して取得する
Get-AzRedisCacheLink -SecondaryServerName "mycache2"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
このコマンドは、mycache2 という名前の Redis Cache がセカンダリである geo レプリケーション リンクを取得します。
例 4: パラメーター セット SingleLink を使用して取得する
Get-AzRedisCacheLink -PrimaryServerName "mycache1" -SecondaryServerName "mycache2"
PrimaryServerName : mycache1
SecondaryServerName : mycache2
ProvisioningState : Succeeded
LinkedRedisCacheLocation : East US
ServerRole : Secondary
PrimaryHostName : mycache1.redis.cache.windows.net
GeoReplicatedPrimaryHostName : mycache2.geo.redis.cache.windows.net
このコマンドは、mycache1 という名前の Redis Cache がプライマリで、mycache2 という名前の Redis Cache がセカンダリである 1 つの geo レプリケーション リンクを取得します。
パラメーター
-DefaultProfile
Azure との通信に使用される資格情報、アカウント、テナント、サブスクリプション。
パラメーターのプロパティ
| 型: | IAzureContextContainer |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
| エイリアス: | AzContext, AzureRmContext, AzureCredential |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
-Name
Redis Cache の名前。
パラメーターのプロパティ
| 型: | String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
AllLinksForCache
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-PrimaryServerName
リンク内のプライマリ Redis Cache の名前。
パラメーターのプロパティ
| 型: | String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
AllLinksForPrimaryCache
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
SingleLink
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-SecondaryServerName
リンク内のセカンダリ Redis Cache の名前。
パラメーターのプロパティ
| 型: | String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
SingleLink
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
AllLinksForSecondaryCache
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットは、共通パラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable をサポートします。 詳細については、about_CommonParametersを参照してください。