Azure 无法重新启动虚拟机 - NIC 未处于成功状态

Azure Failed to restart virtual machine - NIC is not in Succeeded state

我破坏了为 VM 创建的默认用户后,我想重设密码或创建新用户。我收到以下错误:

Failed to restart the virtual machine 'vm'. Error: Cannot proceed with operation because resource xx-Pipeline-Agent/providers/Microsoft.Network/publicIPAddresses/xx-agent-ip'>xx-agent-ip used by resource /subscriptions/xxx/resourceGroups/xxx-Pipeline-Agent/providers/Microsoft.Network/networkInterfaces/xxx-agent442 is not in Succeeded state. Resource is in Failed state and the last operation that updated/is updating the resource is PutPublicIpAddressOperation.

我也在尝试重新部署或重新启动虚拟机,但我遇到了同样的错误。我也尝试过这个但没有运气:

az network nic update --resource-group xx-Pipeline-Agent --name xx-agent442

如何修复网卡状态?

尝试转到 Azure Resource Explorer,导航到路径,subscriptions--->resourceGroups--->providers--->Microsoft.Network--->publicIPAddresses , 找到失败的public IP,点击edit,然后进行PUT操作。

如果失败,可以在底部查看错误,如果成功,可以在Azure portal中查看public IP地址是否处于成功状态。

您可以获得有关 Azure 资源浏览器的更多详细信息:a new tool to discover the Azure API