0

我之前使用过这个脚本: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}"}]}

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

虚拟网络 /subscriptions/e7bf4de8-4b3c-439b-b8de-f81609dd73e9/resourceGroups/HanaWestUS2Rscgrp/providers/Microsoft.Network/virtualNetworks/ra-sap-hana-vnet 的子网 sapdatasubnet 和 sapmgmtsubnet 的 ServiceEndpoint 配置未在 1209 秒内完成。配置未应用于子网 sapdatasubnet 的以下 IP:10.0.5.10、10.0.5.16、10.0.5.13;sapmgmt 子网:10.0.6.9。这些子网现在处于失败状态。再次尝试更新虚拟网络或单个子网(使用相同或不同的 ServiceEndpoints 值)以使子网返回成功状态。您还可以尝试停止/取消分配或删除使用这些 IP 的虚拟机并再次重新应用配置

我猜想当我第二次尝试运行脚本时产生了网络冲突,现在我的主 vnet 处于“失败状态”。vnet 似乎很好,因为我仍然可以连接到两个原始 VM,但是当它处于故障状态时,我无法创建属于我的 vnet 的任何新 VM 或更改“服务端点”。有谁知道我怎样才能摆脱失败的状态?

4

1 回答 1

0

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

于 2018-03-06T16:52:40.663 回答