I want to protect my Azure private DNS against accidental deletion. At first a placed resource locks on the DNS zone. But this prevented me from deleting individual virtual network links (microsoft.network/privatednszones/virtualnetworklinks) as these are child resources, and thus also locked. I want to still be able to delete these without removing the lock first. I only want to protect the whole Zone from being deleted.
Is it possible to place locks that wont be inherited to child resources?