Remove-AzRecoveryServicesAsrReplicationProtectionCluster
停止/禁用 Azure Site Recovery 复制保护群集的复制。
语法
Remove-AzRecoveryServicesAsrReplicationProtectionCluster
-InputObject <ASRReplicationProtectionCluster>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Remove-AzRecoveryServicesAsrReplicationProtectionCluster cmdlet 禁用指定 Azure Site Recovery 复制保护群集的复制。 此作会导致保护群集停止复制。
示例
示例 1
Remove-AzRecoveryServicesAsrReplicationProtectionCluster -ReplicationProtectionCluster $ClusterToDisable
为指定的复制保护群集启动禁用复制作,并返回用于跟踪作的 ASR 作业。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
指定要禁用复制的复制保护群集对象。
类型: | ASRReplicationProtectionCluster |
别名: | ReplicationProtectionCluster |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |