I can't remove a virtual network link

(Admin) ALBERTO MARTIN GUTIERREZ 20 Reputation points
2025-07-02T11:43:58.1433333+00:00

I can't remove a private dns zone because of an existing virtual network link nested, although the console doesn't show any.

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.
2,777 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alex Burlachenko 11,035 Reputation points
    2025-07-02T12:21:15.52+00:00

    Hi ALBERTO,

    thanks for posting this, its a tricky one but we'll sort it out ))

    first, let's tackle the microsoft way. sometimes the azure portal ui lags or glitches, so try a hard refresh (ctrl+f5). if that doesn't work, go straight to azure powershell or cli. run get azprivate dns virtual network link to list all links u might spot the hidden culprit azure private dns docs.

    aha, and if u see a phantom link, nuke it with remove azprivate dns virtual network link. yes, it feels like magic when it works ))

    now, general tips that help everywhere... check if u have the right permissions (owner or network contributor). also, this might happen in other clouds too, not just azure. worth looking into if u multi-cloud.

    oh and pro tip sometimes the link is stuck in 'deleting' state. give it 30 mins or check azure resource health resource health docs. patience is a virtue, but who has time for that, right? ))

    bonus: if u use terraform or arm templates, scan for orphaned resources. they love to hide like ninjas.

    let me know if u need more tricks! Alberto, u got this :))

    Best regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    

    https://ctrlaltdel.blog/

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. (Admin) ALBERTO MARTIN GUTIERREZ 20 Reputation points
    2025-07-02T13:53:20.5933333+00:00

    My bad. There was a clash between the Private DNS zones and hub DNS zones. The virtual network link creation failed because the zones overlapped.

    0 comments No comments

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.