无法删除网卡 [英] Cannot Delete NIC

查看:101
本文介绍了无法删除网卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网卡说它已连接到虚拟机,但是如果我尝试显示该虚拟机已被删除.

I have a nic that says its attached to a VM, but if I try and show the VM is says its deleted.

关于如何删除此NIC的任何想法?

Any ideas on how to delete this NIC?

推荐答案

You can delete a network interface as long as it's not attached to a virtual machine. If a network interface is attached to a virtual machine, you must first place the virtual machine in the stopped (deallocated) state, then detach the network interface from the virtual machine. If you haven’t done this already, to detach a network interface from a virtual mach in, try the following steps:

注意: 如果网络接口是连接到虚拟机的唯一网络接口,则无法将其从虚拟机分离.

Note: You cannot detach a network interface from a virtual machine if it's the only network interface attached to the virtual machine.

一台虚拟机必须始终至少连接一个网络接口做到这一点.删除虚拟机将分离附加到该虚拟机的所有网络接口, 但不会删除网络接口.

A virtual machine must always have at least one network interface attached to it. Deleting a virtual machine detaches all network interfaces attached to it, but does not delete the network interfaces.

  1. 登录到Azure门户.
  2. 在门户顶部的搜索框中,搜索广告的名称您要从中删除(分离)网络接口的VM,或者通过选择全部来浏览VM. 服务 ,然后虚拟机 .找到虚拟机后,选择它.
  3. 设置 , 然后停止 .等待直到VM的状态 更改为已停止 (已取消分配) .
  4. 选择分离网络接口 .从当前连接的网络接口列表中
  1. Sign in to the Azure portal.
  2. In the search box at the top of the portal, search for the name of the VM you want to remove (detach) the network interface from, or browse for the VM by selecting All services, and then Virtual machines. After you've found the VM, select it.
  3. Select Overview, under SETTINGS, and then Stop. Wait until the Status of the VM changes to Stopped (deallocated).
  4. Select Networking, under SETTINGS.
  5. Select Detach network interface. From the list of network interfaces currently attached to the virtual machine, select the network interface you'd like to detach.
  6. Select OK.

如果您已经尝试了上述方法,请尝试使用Powershell cmdlet: Remove-AzureRmNetworkInterface ,看看是否有帮助.

If you have already tried the above, try using the Powershell cmdlet: Remove-AzureRmNetworkInterface and see if that helps.


这篇关于无法删除网卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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