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

Azure v-net in failed state after re-deploying ARM script

我以前使用这个脚本:https://github.com/AdamBJ/SAP-HANA-ARM 来启动两个 Azure VM。我想使用该脚本启动另外两个 VM,因此我更改了硬编码到脚本中的 VM 名称并再次尝试 运行ning。但是,脚本第二次部署失败并显示以下错误消息:

{"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}"}]}

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

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

我想当我第二次尝试 运行 脚本时产生了网络冲突,现在我的主要 vnet 在 "failed state" 中。 vnet 似乎很好,因为我仍然可以连接到两个原始 VM,但我无法创建属于我的 vnet 的任何新 VM 或更改处于故障状态的 "Service Endpoints"。有谁知道我怎样才能让我的发泄器脱离故障状态?

ARM 脚本破坏了我为 vnet 使用的自定义 DNS 设置。 Re-establishing 自定义设置强制重新部署修复失败状态问题的 vnet。