MigrationState陷入了准备 [英] MigrationState stuck at Preparing

查看:86
本文介绍了MigrationState陷入了准备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将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


欲了解更多信息,请参考以下链接:


https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-ps-migration-classic-资源经理/


希望这会有所帮助。


 


问候,


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.MigrationState

I 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


deploymentName

If 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:

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-ps-migration-classic-resource-manager/

Hope this helps.

 

Regards,

Pradeep

 


这篇关于MigrationState陷入了准备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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