我可以将vm放到不是AvailabilitySet的另一个资源组中吗? [英] Can i put vm into another resource group than availabilitySet?

查看:110
本文介绍了我可以将vm放到不是AvailabilitySet的另一个资源组中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将每个VM放在单独的资源组中,以简化生命周期管理.我有一个包含n个VLM的群集.

I would like to keep each VM in separate resource group for ease for lifecycle management. I have a cluster containing n VLMs.

因此,我为公用IP,负载平衡器之类的常见事物创建了一个资源组,并在其中添加了AvailabilitySet声明,因为它也必须在VM之间共享. 然后,我在单独的资源组中创建VM,并使用 "availabilitySet":{ "id":"[resourceId('Microsoft.Compute/availabilitySets',variables('availabilitySetName'))]" }, 原因是定义了"availabilitySetName".

So I create one resource group for common things like public IP, load balancer and put availabilitySet declaration into it because is also must be shared between VMs. Then I create VM in separate resource group and reference to availabilitySet with "availabilitySet": { "id": "[resourceId('Microsoft.Compute/availabilitySets',variables('availabilitySetName'))]" }, Of cause 'availabilitySetName' is defined.

部署模板时,我收到一条错误消息

When I deploy my template I get an error saying

{错误":{代码":"BadRequest",消息":资源参考ID中的实体resourceGroupName/subscriptions/a719381f-1fa0-4b06-8e29-ad6ea7d3c90b/resourceGroups/TB_PIP_OPSRV_UAT/providers/Microsoft.Compute/availabilitySets/tb_avlbs_opsrv_uat无效.}}

{"error":{"code":"BadRequest","message":"Entity resourceGroupName in resource reference id /subscriptions/a719381f-1fa0-4b06-8e29-ad6ea7d3c90b/resourceGroups/TB_PIP_OPSRV_UAT/providers/Microsoft.Compute/availabilitySets/tb_avlbs_opsrv_uat is invalid."}}

我再次检查了资源和可用性集名称的正确指定.

I double checked that resource and availability set name are specified correctly.

这是否意味着我不能将一个集合放在与VM分离的资源组中?

Does it mean that I can't put a set in separate resource group from VM?

推荐答案

不幸的是,不支持让VM使用其他资源组中的AvailabilitySet:(.

Unfortunately, having a VM use an availabilitySet in a different resource group is not supported :(.

这篇关于我可以将vm放到不是AvailabilitySet的另一个资源组中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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