Azure中的分配失败,无法删除虚拟机

时间:2017-11-13 14:35:54

标签: azure hdinsight

我使用Microsoft Azure,我订阅了HDInsight,它的位置在日本。几天前,我错误地删除了我使用过的所有虚拟机,并决定使用vhdl文件恢复虚拟机。但是,我改变主意创建新VM而不是恢复它们。我成功完成了新VM的安装,并安装了Hadoop和Spark,并且使用得非常好。但是,几天之后,当我启动我的虚拟机时,打开它的速度非常慢,最终它会抛出错误,指示以下消息。

  

配置失败。分配失败。请尝试减少VM   VM的大小或数量,稍后重试,或尝试部署到其他VM   可用性设置或不同的Azure位置.. AllocationFailed。

我尝试关注Azure中的文档并更改了VM的大小并删除了我创建的虚拟机,但是删除或更改虚拟机失败了以下消息。

Provisioning failed. Delete/Deallocate operation on VM 'hadoop-master' failed because the remaining VMs in the Availability Set 'spark-avs' cannot be allocated together. Changes in Availability Set allocation need to be executed atomically. Please deallocate or delete some or all of these VMs before retrying the current operation. 
 Please note that this VM is not allocated and won't accrue any charges.
 Details: {
 "resourceType": "Microsoft.WindowsAzure.ComputeResourceProvider.Core.Strings, CRP.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
 "ResourceCode": "ComputeAllocationFailure",
 "ResourceParameters": []
 }. CannotAllocateRemainingVMsInAvailabilitySet

请注意,我重新安装的所有虚拟机都位于相同的可用性集中,并且我选择了韩国作为新区域(前一个是日本)。

我试图多次开始但失败了。

如何解决此问题?

1 个答案:

答案 0 :(得分:1)

注意:创建VM时,重新启动已停止(取消分配)的VM,调整VM大小,或者在添加新实例时,Microsoft Azure会将计算资源分配给您的订阅。在您到达Azure subscription limits之前,您可能偶尔会在执行这些操作时收到错误。

本文“Troubleshoot allocation failures when you create, restart, or resize Linux VMs in Azure”解释了一些常见分配失败的原因,并建议了可能的补救措施。

如果您指定Extra small,Small和medium,则会收到验证失败错误消息。

注意:头节点推荐尺寸为 D3 v2 D4 v2 D12 v2

有关详细信息,请参阅“Default node configuration and virtual machine sizes for clusters”。

在部署HDInsight群集之前,请通过确定所需的性能和规模来规划所需的群集容量。此规划有助于优化可用性和成本。

部署后无法更改某些群集容量决策。如果性能参数发生变化,则可以拆除并重新创建集群,而不会丢失存储的数据。

有关详细信息,请参阅“Capacity planning for HDInsight clusters”。