Get-AzRecoveryServicesAsrProtectionContainerMapping
取得 Azure Site Recovery Protection 容器對應。
語法
Get-AzRecoveryServicesAsrProtectionContainerMapping
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectionContainerMapping
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzRecoveryServicesAsrProtectionContainerMapping Cmdlet 會取得指定 ASR 保護容器保存庫中保護容器與複製策略對應(關聯)的相關信息。
範例
範例 1
$ProtectionContainerMappings = Get-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $Container
容器的保護容器對應清單。
範例 2
$ProtectionContainerMappings = Get-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainer $Container -Name $PrimaryProtectionContainerMapping
Name : pcmmapping
ID : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/d011a5abf48190235963ee3a88ad188ee6bca8a4c6cd0c8d7ce5d439aa77ffd9/replica
tionProtectionContainers/cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078/replicationProtectionContainerMappings/pcmmapping
Health : Normal
HealthErrorDetails : {}
PolicyFriendlyName : V2aTestPolicy
PolicyId : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationPolicies/V2aTestPolicy
SourceFabricFriendlyName : V2A-W2K12-400
SourceProtectionContainerFriendlyName : V2A-W2K12-400
State : Paired
TargetFabricFriendlyName : Microsoft Azure
TargetProtectionContainerFriendlyName : Microsoft Azure
TargetProtectionContainerId : Microsoft Azure
取得指定之保護容器的所有保護容器對應。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
指定要取得的保護容器對應名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ProtectionContainer
取得對應至指定 ASR 保護容器對象的保護容器對應。
類型: | ASRProtectionContainer |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |