你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Update-AzRecoveryServicesAsrMobilityService
将移动服务代理更新推送到受保护的计算机。
语法
Update-AzRecoveryServicesAsrMobilityService
[-Account <ASRRunAsAccount>]
-ReplicationProtectedItem <ASRReplicationProtectedItem>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Update-AzRecoveryServicesAsrMobilityService cmdlet 尝试将移动服务代理更新推送到受保护的计算机(如果更新可用)。
示例
示例 1
Update-AzRecoveryServicesAsrMobilityService -ReplicationProtectedItem $rpi -Account $fabric.fabricSpecificDetails.RunAsAccounts[0]
用于跟踪更新复制保护项的移动服务代理的作业。
参数
-Account
用于推送更新的运行方式帐户 ID。 必须是 ASR 构造中与要更新的计算机对应的运行方式帐户列表中的帐户之一。
类型: | ASRRunAsAccount |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ReplicationProtectedItem
要更新的 Azure Site Recovery 复制保护项。
类型: | ASRReplicationProtectedItem |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |