Troubleshooting Azure DNS credentials
Use the message, the cause, and the fix to resolve errors when you add an Azure DNS credential or when DNS records do not appear in the zone.
Common errors
| Message or symptom | Cause and fix |
|---|---|
| Azure DNS credential check failed: Credentials are valid but lack required DNS permissions (HTTP 403) | The login worked, but the service principal cannot read the subscription, the resource group, or the zone. Assign the DNS Zone Contributor role on the resource group, even though the message mentions the zone, and wait a minute. |
| Azure DNS credential check failed: Authentication failed (invalid or expired credentials) (HTTP 401) | The tenant ID, client ID, or client secret is wrong, or the client secret expired. Create a new client secret, delete the DNS credential, and add it again. |
| No DNS zone matching 'domain' was found in resource group 'resource-group' | The domain is not exactly the zone name, the resource group is wrong, or the zone is in another resource group. |
| Field must be a valid GUID. | The tenant ID, subscription ID, or client ID is not a GUID. A subscription name causes this message. Enter the subscription ID. |
| Records do not appear in the zone. | Check the external-dns logs, as described in Adding an Azure DNS credential. Check that the host name is inside the zone of the credential. |
Known limitations
- To rotate the client secret, delete the DNS credential and add it again.
- Only the Azure public cloud is supported.
- You cannot select private DNS zones in the form, and Let's Encrypt cannot use them.
- Workload identity is not supported yet. Use static credentials.
- When you disable DNS on a project, the records that the project created stay in the zone. Before you disable DNS, delete the Ingresses, Services, and DNSEndpoints of the project and wait a minute, so that external-dns removes its own records. Delete any records that remain by hand. To list the records, run
az network dns record-set list -g resource-group -z zone --subscription subscription-id -o table. If you enable DNS again, external-dns uses a new owner ID and no longer recognizes the old records.
