Restrciting wild card domains on azure app service

Rashmi Sajjan 56 Reputation points

I was able to add wildcard domains and attach to out App service.

Now Our concern is , it allows any domains which ends with say '', at least the landing page of website.

Suppose, we asked customer A to use, if they misspell and use, still they will be able to access this and try to login and end up having error.

So, Is there any way, we can add restriction for subdomain? at App service level to allow only some domains or at Traffic manager level or load balancer level?

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,575 questions
Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
85 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
280 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 16,606 Reputation points Microsoft Employee

    I would think you could leverage a text pattern style management policy scoped to the traffic manager. I'm not well versed in management policies but hopefully the repo provides some tips and tricks. Another option you could do is create tooling that uses the management REST API to create the resources for your customers. That way, you have complete control over the source metadata and how those resources get created.