重新部署ARM脚本后,Azure v-net处于失败状态

时间:2018-03-04 20:05:52

标签: azure vnet

我之前使用过这个脚本:https://github.com/AdamBJ/SAP-HANA-ARM来启动两个Azure VM。我想使用该脚本来启动另外两个VM,因此我将硬编码的VM名称更改为脚本并尝试再次运行它。但是,第二次脚本无法部署时出现以下错误消息:

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VirtualNetworkServiceEndpointUpdateTimedOut\",\r\n \"message\": \"Configuration of ServiceEndpoints for subnets sapdatasubnet, sapmgmtsubnet of virtual network /subscriptions/e7bf4de8-4b3c-439b-b8de-f81609dd73e9/resourceGroups/HanaWestUS2Rscgrp/providers/Microsoft.Network/virtualNetworks/ra-sap-hana-vnet did not complete in 1209 seconds. The configuration did not get applied to the following IPs of the subnet sapdatasubnet: 10.0.5.10, 10.0.5.16, 10.0.5.13; sapmgmtsubnet: 10.0.6.9. These subnets are in Failed state now. Try updating the virtual network or individual subnets again (with the same or different ServiceEndpoints value) to return subnets to Succeeded state. You can also try stopping/deallocating or removing VMs that use these IPs and re-applying the configuration again.\",\r\n \"details\": []\r\n }\r\n ]\r\n }\r\n}"}]}

这是重要的部分(我认为):

  

为子网sapdatasubnet配置ServiceEndpoints,   sapmgmtsubnet的虚拟网络   /subscriptions/e7bf4de8-4b3c-439b-b8de-f81609dd73e9/resourceGroups/HanaWestUS2Rscgrp/providers/Microsoft.Network/virtualNetworks/ra-sap-hana-vnet   没有在1209秒内完成。配置没有得到   应用于子网sapdatasubnet的以下IP:10.0.5.10,   10.0.5.16,10.0.5.13; sapmgmtsubnet:10.0.6.9。这些子网现在处于Failed状态。尝试更新虚拟网络或个人   再次使用子网(具有相同或不同的ServiceEndpoints值)   将子网返回到Succeeded状态。你也可以试试   停止/取消分配或删除使用这些IP的VM   再次重新应用配置

我想当我第二次尝试运行脚本时创建了网络冲突,现在我的主要vnet处于“失败状态”。 vnet看起来很好,因为我仍然可以连接到两个原始虚拟机,但是我无法创建属于我的vnet的任何新虚拟机,或者在处于失败状态时更改“服务端点”。有谁知道我怎样才能让我从失败的状态中解脱出来?

1 个答案:

答案 0 :(得分:0)

ARM脚本淘汰了我为vnet设置的自定义DNS设置。重新建立自定义设置会强制重新部署修复失败状态问题的vnet。