Cannot delete NSG, associted with with non existent Network Interface

CR 26 Reputation points
2022-01-12T06:42:24.443+00:00

I have an NSG associated with. a Network Interface which was deleted

  • The NIC appears under resource group, but when I click on it says "Resource Not Found"
  • If I try to delete the NSG in portal it throws an error since it is associated to NIC
  • If I try to delete through CLI same error
  • If I click NIC under NSG the message is not found
  • If I try to remove the NIC by editing JSON directly in resources.azure.com, although it returns success on the PUT, the reference to the NIC returns.
  • If I try to delete on resources,azure,com same error.

P.S. Is there no tag for Azure network/ Interfaces/ NSG etc?

Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
169 questions
0 comments No comments
{count} votes

Accepted answer
  1. Manu Philip 18,396 Reputation points MVP
    2022-01-12T07:07:39.483+00:00

    Have a try to update the NIC and NSG using the following commands and try delete again.

    az network nsg update  
    az network nic update  
    

    Following links are the detailed references to find the usage of these commands
    https://video2.skills-academy.com/en-us/cli/azure/network/nic?view=azure-cli-latest
    https://video2.skills-academy.com/en-us/cli/azure/network/nsg?view=azure-cli-latest#az_network_nsg_update

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.