MigrationState陷入了准备 [英] MigrationState stuck at Preparing
问题描述
我想将VM从经典模式迁移到ARM:
Move-AzureService -Prepare -ServiceName $ serviceName -DeploymentName $ deploymentName -CreateNewVirtualNetwork
操作失败并显示错误消息。好吧,我不在乎。
但是,现在我对我的机器无能为力。我无法启动它,因为它说:
HostedService CloudServiceName 中的部署 VMName 正在迁移过程中因此无法更改
当我这样做时:
$ vmName ="< vm-name>"
$ vm = Get-AzureVM -ServiceName $ serviceName -Name $ vmName
$ migrationState = $ vm.VM.MigrationState
我得到:准备
它被卡住了。如何取消迁移过程?
谢谢
你好,
感谢您在此发帖!
使用PowerShell或Azure门户检查准备资源的配置。
如果您尚未准备好迁移并且想要返回旧状态,请使用以下命令。
Move-AzureService -Abort -ServiceName
serviceName -DeploymentName
deploymentName
如果准备好的配置看起来不错,你可以继续前进并提交资源使用以下命令。
Move-AzureService -Commit -ServiceName docmigtest1 -DeploymentName docmigt est1
欲了解更多信息,请参考以下链接:
希望这会有所帮助。
问候,
Pradeep
&NBSP; 跨度>
I wanted to migrate a VM from classic mode to ARM:
Move-AzureService -Prepare -ServiceName $serviceName -DeploymentName $deploymentName -CreateNewVirtualNetwork
The operation failed with an error message. Fine, I don't care.
However, now I can not do anything with my machine. I can not start it because it says:
Deployment VMName in HostedService CloudServiceName is in the process of being migrated and hence cannot be changed
When I do this:
$vmName = "<vm-name>"
$vm = Get-AzureVM -ServiceName $serviceName -Name $vmName
$migrationState = $vm.VM.MigrationStateI get : Preparing
It is stuck. How can I cancel the migration process ?
Thank you
解决方案Hello,
Thank you for posting here!
Check the configuration for the prepared resources by using either PowerShell or the Azure portal.
If you are not ready for migration and you want to go back to the old state, use the following command.
Move-AzureService -Abort -ServiceName
serviceName -DeploymentName
deploymentNameIf the prepared configuration looks good, you can move forward and commit the resources by using the following command.
Move-AzureService -Commit -ServiceName docmigtest1 -DeploymentName docmigtest1
For more information, kindly refer the link given below:
Hope this helps.
Regards,
Pradeep
这篇关于MigrationState陷入了准备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文