This is not really an Azure subscription setting - it's a setting of your Entra tenant. Follow https://learn.microsoft.com/en-us/entra/fundamentals/add-custom-domain
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin