Set-AzureRmRecoveryServicesAsrReplicationProtectedItem - 如何设置故障转移的参数 [英] Set-AzureRmRecoveryServicesAsrReplicationProtectedItem - How to set the parameters for failover

查看:66
本文介绍了Set-AzureRmRecoveryServicesAsrReplicationProtectedItem - 如何设置故障转移的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助设置如何为Set-AzureRmRecoveryServicesAsrReplicationProtectedItem设置参数吗?


我尝试使用此命令设置受保护虚拟机的故障转移参数。


它要求的参数之一是'Source Nic'。 我不确定用于设置的语法是什么,因为VM实际上不在Azure上,而是在总体上。 在这种情况下,我正在使用VMware进行Azure。





 

解决方案

请参考
的https://文档VMware到Azure故障转移配置的.microsoft.com / zh-cn / azure / site-recovery / vmware-azure-disaster-recovery-powershell #configure-failover-settings


Set-AzureRmRecoveryServicesAsrReplicationProtectedItem详细信息在

https://docs.microsoft.com/en-us/powershell/module/azurerm.recoveryservices.siterecovery/set-azurermrecoveryservicesasrreplicationprotecteditem?view=azurermps -6.13.0
并将Azure
中的目标网络和虚拟机大小等恢复属性设置为Azure。


你能否分享用你得到的错误执行的命令。 


示例查询 



rpi 是复制项目


Set-AzureRmRecoveryServicesAsrReplicationProtectedItem   ; - InputObject  


rpi   - Name   " TestVM"   - PrimaryNic  

Can someone help with how to set the parameters for Set-AzureRmRecoveryServicesAsrReplicationProtectedItem?

I tried to set the failover parameters for a protected virtual machine with this command.

One of the parameters it is asking for is 'Source Nic'.  I am not sure what the syntax is for setting that since the VM is not actually on Azure but on prem.  I am doing VMware to Azure in this case.


 

解决方案

Please refer to https://docs.microsoft.com/en-us/azure/site-recovery/vmware-azure-disaster-recovery-powershell#configure-failover-settings for VMware to Azure failover configurations.

Set-AzureRmRecoveryServicesAsrReplicationProtectedItem details are captured at https://docs.microsoft.com/en-us/powershell/module/azurerm.recoveryservices.siterecovery/set-azurermrecoveryservicesasrreplicationprotecteditem?view=azurermps-6.13.0 and is to set recovery properties such as target network and virtual machine size in Azure to Azure.

Can you share the command executed with the error you are getting . 

Sample Query 


rpi is replicated item

Set-AzureRmRecoveryServicesAsrReplicationProtectedItem -InputObject 


rpi -Name "TestVM" -PrimaryNic 


这篇关于Set-AzureRmRecoveryServicesAsrReplicationProtectedItem - 如何设置故障转移的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆