Hi @Bas Dekker ,
To resolve the issue with adding a managed certificate for your custom domain, ensure that the A record in your DNS service points to the correct public IP address. The error message indicates that the custom domain's A record must match the public IP shown in the custom domain blade of your App Service.
Check the public IP address displayed in the custom domain blade of your App Service. This is the IP address your A record should point to.
In your DNS service (Azure DNS), update the A record for your custom domain to point to the public IP address shown in the custom domain blade.
After updating the A record, it may take some time for the DNS changes to propagate. Use tools like WhatsmyDNS.net to verify that your domain points to the correct IP address.
Once the A record is correctly configured and DNS propagation is complete, try applying for the managed certificate again.
By ensuring that the A record matches the public IP required for the managed certificate, you should be able to resolve the issue.
Troubleshoot domain and TLS/SSL certificate problems in Azure App Service
How to prepare for an inbound IP address change
Let me know if you have any further assistances.
Please accept the answer, so that others can get help from it.