Hi @Aljaž Potočnik ,Thanks for using Microsoft Q&A Platform.
The subdomain names are globally unique.
So, the subdomain name 'azure-openai-test-001' is already in use by any another customer resource. The error message suggests that you pick a different name for your custom domain. Please try to add different name and it would help.
Generally, if the resource using the name was deleted in the last 48 hours, you may need to purge the deleted resource. You can learn more about this and how to resolve it by visiting the following link: https://go.microsoft.com/fwlink/?linkid=2215493.
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks.