Share via

cannot delete virtual network and public IP

Vishnu Goutham 86 Reputation points
2022-06-06T12:01:14.783+00:00

I deleted the NIC associated with the virtual network after that I tried to delete the virtual network and public IP but it is not getting deleted and saying it is associated with the deleted NIC but the NIC was already deleted and showing resource not found. possible solutions for deleting the virtual network?

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

0 comments No comments

Answer accepted by question author

Jackson Martins 10,631 Reputation points MVP
2022-06-06T12:40:05.717+00:00

Hi!

You can try remove a public ip with -force parameter like:

Remove-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $rgName -Force

Get in touch if you need more help with this issue.

--please don't forget to Accept as answer if the reply is helpful--

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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