Is it possible to disable the default URL assigned to the azure web app

pleodev1 1 Reputation point

Is it possible to disable the default URL <webapp-resource-name> for a web app?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,612 questions
{count} votes

2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,221 Reputation points MVP


    I don't think you can turn off access to the website via [your cloud service name] domain.

    However what you could do is include a rewrite rule in your web.config, so that whenever someone tries to access your website via domain, they are automatically redirected to your custom domain.

    How to: Redirect the default * domain to your custom domain on Azure Web Apps

    Setup custom domain URL


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. JoyDutt 816 Reputation points

    Hi @pleodev1 ,

    Yes, it possible to have custom domain url -- Ref:

    (If the reply was helpful please don't forget to upvote and/or accept as answer, Thank You)


    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments