本文介绍了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


我得到:准备


它被卡住了。如何取消迁移过程? 


谢谢





解决方案




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

解决方案




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

10-24 21:20