问题描述
我想将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陷入了准备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!