Remove-AzRecoveryServicesAsrProtectionContainerMapping
刪除指定的 Azure Site Recovery 保護容器對應。
語法
Remove-AzRecoveryServicesAsrProtectionContainerMapping
-InputObject <ASRProtectionContainerMapping>
[-Force]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-AzRecoveryServicesAsrProtectionContainerMapping Cmdlet 會刪除指定的 Azure Site Recovery 保護容器對應。
範例
範例 1
$currentJob = Remove-AzRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping
開始刪除指定的保護容器對應,並傳回用來追蹤作業的 ASR 作業。
參數
-Confirm
指定是否需要確認。 將 confirm 參數的值設定為 $false,以略過確認
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Force
強制命令執行,而不提供額外的警告。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Cmdlet 的輸入對象:對應至要刪除之保護容器的 ASR 保護容器對應物件。
類型: | ASRProtectionContainerMapping |
別名: | ProtectionContainerMapping |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示如果 Cmdlet 執行而不實際執行 Cmdlet,會發生什麼情況。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |