An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
The most likely cause is that the Azure Portal view is not scoped to the same subscription and resource group where the private DNS zone was created, even though the resource exists and is visible via Azure CLI.
Key points from the CLI behavior and documentation:
-
az network private-dns zone createcreates a Private DNS zone as a global resource in the specified resource group and subscription:
The command requires onlyaz network private-dns zone create \ --resource-group <resource-group-name> \ --name "privatelink.azurewebsites.net"--resource-groupand--nameand does not take a location, because private DNS zones are global resources. - Listing private DNS zones with:
returns all private DNS zones in the currently selected subscription. Addingaz network private-dns zone list--resource-groupscopes the list to a specific resource group. - The Azure DNS documentation notes that DNS resources are global, but they are still contained in a specific resource group and subscription:
- The zone name must be unique within the resource group.
- The same zone name can be reused in a different resource group or subscription.
Given that the CLI shows the zone with Provisioning state: Succeeded, the resource is correctly created. When it does not appear in the Portal’s Private DNS zones blade, the usual reasons are:
- Portal subscription scope mismatch
The Portal may be scoped to a different subscription than the one selected in CLI withaz account set. Even if the subscription filter is set to “All” in some blades, the overall portal directory/subscription context can still differ from the CLI context. - Portal directory (tenant) mismatch
When working across multiple tenants, the Portal may be logged into a different Azure AD tenant than the one where the subscription (and the private DNS zone) resides. In that case, the resource will never appear in the Portal until the correct directory is selected. - Resource group filter in the Private DNS zones blade
Even if the global filter is cleared, the Private DNS zones blade can still be scoped to a specific resource group or subscription. The zone will only appear when the blade is scoped to the resource group and subscription where it was created.
Actionable checks:
- In Azure Portal, switch to the correct directory/tenant that contains the subscription used in CLI.
- In the Portal’s top bar, open Directory + subscription and ensure the subscription that
az account showreports is checked and active. - In Private DNS zones:
- Set Subscription filter to the specific subscription used in CLI (not just “All”).
- Set Resource group filter to the exact resource group passed to
--resource-group. - Refresh the blade.
- Alternatively, go to Resource groups → <resource-group-name> → Overview and check whether the private DNS zone appears in the resource list there. If it does, it confirms the zone exists and the issue is only with the Private DNS zones blade filtering.
There is no product behavior in the provided documentation indicating that a successfully created private DNS zone would be intentionally hidden from the Portal; discrepancies are due to subscription/tenant or filter scoping rather than a different resource type or location.
References:
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.