Hi Daniel Lee,
Thanks for the reply, please try to use below comments to delete the NIC.
Get-AzNetworkInterface | where-object { $_.VirtualMachine -eq $null } | ft name
Get-AzNetworkInterface | where-object { $_.VirtualMachine -eq $null } | Remove-AzNetworkInterface -Force
If above steps does not work, please check with resource.azure.com.
- Open a web browser and navigate to https://resources.azure.com
- Log-in to the appropriate Azure account
- In the blade on the left side of the browser, expand subscriptions, then expand the desired subscription name
- In the blade on the left side of the browser, expand resource groups
- Under resource groups, expand the proper Resource Group Name
- Under the Resource Group, expand providers
- Under providers, expand Microsoft.Network
- Under Microsoft.Network, expand networkinterfaces
- Under networkinterfaces, select the NIC which you are failing to delete.
- Near the top of the content window of the browser, select the Read/Write push button
- Select the Actions(POST, DELETE) tab and click on Delete.
If you find this comment helpful, please “up-vote” for the information provided , this can be beneficial to community members.
Kindly let us know if you have any additional questions.
Thanks