Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that the Private DNS Zones, when unlinked from a Private EndPoint , automatically removes the record in the Private DNS Zone.
Let's call the local subscription as "LocalDNSZone" and centralized one as "CentralDNSZone".
I believe this is an expected behavior, and currently we cannot over ride this.
I checked internally and the recommendation was to use the "CentralDNSZone" across every VNET as Private DNS Zone is a highly available resource and is not tied to any region.
For some management reason, if you want to keep the record intact,
- You must manually add the record to the "LocalDNSZone"
- Additionally, you can add this Private DNS Zone to the default Private DNS Group and keep it handy.
- However, only the first DNS Zone in a Zone group will have the records automatically updated. (CentralDNSZone)
- In case you remove the "CentralDNSZone" from the DNS Zone Group, the next DNS Zone, "LocalDNSZone" will automatically get updated with the PE's IP and A records.
Currently, we must rely on CLI to update these DNS Zone groups.
To address your query, "Is it not possible to change 'DNS Zone group' from portal while adding the new zone?"
- Please note that a PE can have only one DNS Zone group at an instant.
- You cannot add a second one.
-
- If you'd like to change this DNS Zone Group's name, you must delete this and recreate this with the custom name.
Please let us know if we can be of any further assistance here.
Thanks,
Kapil
Please Accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.