New-AzRecoveryServicesAsrReplicationProtectionCluster
创建 ASR 复制保护群集。
语法
New-AzRecoveryServicesAsrReplicationProtectionCluster
[-AzureToAzure]
-Name <String>
-ProtectionContainerMapping <ASRProtectionContainerMapping>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
New-AzRecoveryServicesAsrReplicationProtectionCluster cmdlet 创建新的复制保护群集。 使用此 cmdlet 创建复制保护群集。
示例
示例 1
New-AzRecoveryServicesAsrReplicationProtectionCluster -AzureToAzure -Name $ClusterName -ProtectionContainerMapping $ProtectionContainerMapping
使用指定的参数启动复制保护群集创建作,并返回用于跟踪作的 ASR 作业。
参数
-AzureToAzure
Switch 参数指定 Azure 到 Azure 灾难恢复、复制保护群集创建的方案。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
指定 ASR 复制保护群集的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProtectionContainerMapping
指定与要用于复制的复制策略对应的 ASR 保护容器映射对象。
类型: | ASRProtectionContainerMapping |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None