Please note the pre-requisites for setting up a custom domain for Azure app services as hilighted below:
Buy an App Service domain and configure an app with it
To use custom domains in Azure App Service, your app’s App Service plan must be a paid tier (Shared, Basic, Standard, or Premium)
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--