Prerequisites
When bringing your own private DNS, you should meet the following prerequisites:
Create a private DNS zone and link it to your VNet
-
Create a private DNS zone with a name ending with the name
privatelink.postgres.database.azure.comin case of Flexible Server with Private Link or with a name ending withpostgres.database.azure.comin case of Flexible Server with delegated subnet in any subscription accessible to the service principal used by the Cloudera app-based credential; that is, the subscription where the private DNS zone is created must be in the same tenant where the service principal is located.In case of Flexible Server with Private Link, use the following Azure CLI command to create a private DNS zone:az network private-dns zone create \ --name privatelink.postgres.database.azure.com \ --resource-group <YOUR_DNS_RESOURCE_GROUP> \ --subscription <YOUR_SUBSCRIPTION_FOR_DNS>In case of Flexible Server with delegated subnet, use the following Azure CLI command to create a private DNS zone:az network private-dns zone create \ --name flexible.postgres.database.azure.com \ --resource-group <YOUR_DNS_RESOURCE_GROUP> \ --subscription <YOUR_SUBSCRIPTION_FOR_DNS> - Link it to the VNet that you are planning to use for the Cloudera environment. You can do
this using the following Azure CLI
command:
z network private-dns link vnet create \ --name <DESIRED_LINK_NAME> \ --resource-group <YOUR_VNET_RESOURCE_GROUP> \ --zone-name <PRIVATE_DNS_ZONE_NAME> \ --virtual-network <YOUR_VNET_RESOURCE_ID> \ --subscription <YOUR_VNET_SUBSCRIPTION>
Ensure that Cloudera has adequate permissions
Ensure that the role that you are using for the Azure credential has the permissions mentioned in Role definition 2: Allows Cloudera to use only a single existing resource group and create private endpoints.
{
"Name": "Cloudera Management Console Azure Operator for Using Private DNS Zones",
"IsCustom": true,
"Description": "Can list, validate and use private DNS zones",
"Actions": [
"Microsoft.Network/privateDnsZones/join/action",
"Microsoft.Network/privateDnsZones/read",
"Microsoft.Network/privateDnsZones/virtualNetworkLinks/read"
],
"NotActions": [],
"DataActions": [
],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/{SUBSCRIPTION-ID}/resourcegroups/{RESOURCE-GROUP-NAME}"
]
}{SUBSCRIPTION-ID}- The ID of the subscription where the DNS zone is located.{RESOURCE-GROUP-NAME}- The name of the resource group where the DNS zone is located.
