Cannot link Azure created private DNS zone with a custom created private DNS Zone
Scenario:
We have a storage account - teststorageaccount.
We created a Virtual Network with a subnet (pvtsubnet)
Then we created a Private Endpoint for the storage account using Private Endpoint tab under Networking section.
We specified below:
- resource group
- component of storage account - blob
- private endpoint name
- virtual network/subnet
- private DNS Zone was automatically created (format - privatelink.blob.core.windows.net) within the current resource group (existing custom created private DNS zone was not visible under drop down) (FQDN -<storageaccount>.privatelink.blob.core.windows.net)
Thing is, we already have a private DNS zone - pvt.dns.zone which we wanted to use with the storage account private endpoint.
To accomplish this, we tried to create a "A" record in pvt.dns.zone with name as - <storageaccount>.privatelink.blob.core.windows.net, IP - (IP from the vnet range which was used whilst creating private endpoint for the storage account)
Although the "A" record creation is successful.
nslookup <storageaccount>.privatelink.blob.core.windows.net.pvt.dns.zone
errors out - Non-existent domain
Please suggest how can we implement below requirement and also if this implementation is even valid?
Use an existing private DNS zone for a private endpoint created for an Azure storage account.
To accomplish this requirement