重新启动VM时,角色实例名称无效

时间:2021-10-20 17:05:55

I an have 8 node cluster setup in the Azure virtual network.

我在Azure虚拟网络中有8节点群集设置。

It was working fine until I shut down the virtual machines from the Azure Management Portal (shutdown icon/button).

在我从Azure管理门户关闭虚拟机(关闭图标/按钮)之前,它工作正常。

After I stopped two virtual machines last week, I could not re-start them.

在我上周停止了两台虚拟机后,我无法重新启动它们。

Friday evening I shutdown one more virtual machine to save on the costs, but today I am unable to start this virtual machine as well.

星期五晚上我关闭了一台虚拟机以节省成本,但今天我也无法启动这个虚拟机。

I see the following error:

我看到以下错误:

Failed to start virtual machine VM_NAME_HERE.

无法启动虚拟机VM_NAME_HERE。

Role instance name is not valid

角色实例名称无效

Could anyone please suggest how to fix it?

任何人都可以建议如何解决它?

I have also tried from Powershell with the same result.

我也从Powershell尝试过同样的结果。

Here is the console output:

这是控制台输出:

VERBOSE: 1:33:16 PM - Completed Operation: Get Deployment
VERBOSE: 1:33:16 PM - Begin Operation: Start-AzureVM
Start-AzureVM : ResourceNotFound : Role instance name is not valid.
At line:1 char:1
+ Start-AzureVM -ServiceName MyServiceName -Name VMName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Start-AzureVM], ComputeCloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.StartAzureVMCommand

VERBOSE: 1:33:49 PM - Completed Operation: Start-AzureVM

Any help on this is highly appreciated.

对此的任何帮助都非常感谢。

Regards, JE

此致,JE

2 个解决方案

#1


0  

It looks very weird, nevertheless the unique important thing in the VM is the disk (data) all other stuff is 'deletable' .

它看起来很奇怪,但VM中唯一重要的东西是磁盘(数据)所有其他东西都是'可删除的'。

Try just creating another VMs with a compliant name and attach your current VM disk as main disk in the new ones.

尝试创建具有兼容名称的其他VM,并将当前VM磁盘作为主磁盘附加到新磁盘中。

Don't forget to delete the old VMs once the new start working.

新开始工作后,不要忘记删除旧VM。

#2


0  

I had the same issue when resizing a VM. My problem was resolved by going into Azure Portal->Virtual Machines->Disks then selecting the disk attached to the VM in question(mine has only one disk) and finally selecting 'edit cache' at the bottom. I just accepted what was already present in the popup and that was it. The VM updated and restarted on its own.

调整VM大小时我遇到了同样的问题。我的问题通过进入Azure门户 - >虚拟机 - >磁盘然后选择连接到相关VM的磁盘(我只有一个磁盘)并最终选择底部的“编辑缓存”来解决。我刚刚接受了弹出窗口中已有的内容,就是这样。 VM自行更新并重新启动。

#1


0  

It looks very weird, nevertheless the unique important thing in the VM is the disk (data) all other stuff is 'deletable' .

它看起来很奇怪,但VM中唯一重要的东西是磁盘(数据)所有其他东西都是'可删除的'。

Try just creating another VMs with a compliant name and attach your current VM disk as main disk in the new ones.

尝试创建具有兼容名称的其他VM,并将当前VM磁盘作为主磁盘附加到新磁盘中。

Don't forget to delete the old VMs once the new start working.

新开始工作后,不要忘记删除旧VM。

#2


0  

I had the same issue when resizing a VM. My problem was resolved by going into Azure Portal->Virtual Machines->Disks then selecting the disk attached to the VM in question(mine has only one disk) and finally selecting 'edit cache' at the bottom. I just accepted what was already present in the popup and that was it. The VM updated and restarted on its own.

调整VM大小时我遇到了同样的问题。我的问题通过进入Azure门户 - >虚拟机 - >磁盘然后选择连接到相关VM的磁盘(我只有一个磁盘)并最终选择底部的“编辑缓存”来解决。我刚刚接受了弹出窗口中已有的内容,就是这样。 VM自行更新并重新启动。