Azure App Service: Unable to create new Web Apps with the classic <appname>.azurewebsites.net hostname - Unique Default Hostname option no longer available

Matias Asencio Mallo 20 Puntos de reputación
2026-07-17T20:58:06.3+00:00

Hello,

I'm trying to create a new Azure App Service, but I'm no longer able to create it using the classic hostname format:

myapp.azurewebsites.net

Instead, Azure automatically generates a hostname like:

myapp-fna0ftajcrdxeren.eastus-01.azurewebsites.net

Environment

  • Azure Portal
  • Pay-As-You-Go subscription
  • App Service (Web App)
  • Region: East US
  • Approximately 60 existing App Services in the subscription

Scenario

Until recently, when creating a new Web App, the portal displayed the "Unique Default Hostname" option, allowing me to disable it and use the classic hostname format (myapp.azurewebsites.net).

That option is no longer displayed in the portal.

Expected result

I would like to create a new App Service with the classic default hostname:

myapp.azurewebsites.net

or, if this is no longer supported, I would like to know:

  • Is this behavior expected?
  • Has the Unique Default Hostname feature become mandatory for some subscriptions or regions?
  • Is there any way (Portal, ARM/Bicep, Azure CLI, REST API, etc.) to create a Web App with the classic hostname?

Actual result

Every new Web App is created with a random suffix, for example:

myapp-fna0ftajcrdxeren.eastus-01.azurewebsites.net

The checkbox or option to disable this behavior is no longer available.

Troubleshooting performed

  • Verified this in the Azure Portal.
  • Tested with different application names.
  • Confirmed this is happening for all newly created App Services.
  • Existing App Services continue to use the classic hostname format.

I found documentation describing Unique Default Hostnames when it was introduced as an optional feature, but I couldn't find documentation explaining whether it has become mandatory or why the option disappeared from the portal.

Could someone clarify whether this is a recent platform change or whether there is a configuration that controls this behavior?

Azure App Service
Azure App Service

Azure App Service es un servicio que se usa para crear e implementar aplicaciones web críticas escalables.


Respuesta aceptada por el autor de la pregunta
Aditya N 3,890 Puntos de reputación Personal externo de Microsoft Moderador
2026-07-24T23:52:13+00:00

Hola @Matias Asencio Mallo

Los nuevos recursos de App Service (Web Apps, Function Apps y Logic Apps Standard) creados a través de Azure Portal utilizan ahora automáticamente un nombre de host predeterminado único y seguro. El formato es <AppName>-<Hash>.<Region>.azurewebsites.net y se genera en el momento de la creación para ayudar a prevenir ataques de secuestro de subdominios. Como resultado, el flujo de creación ya no incluye una opción para desactivarlo.

Si su escenario requiere el nombre de host clásico <appname>.azurewebsites.net, todavía puede crear la Web App mediante la CLI de Azure, una plantilla ARM o la API REST sin establecer el parámetro de ámbito del nombre de host.

Recomendación: Los nombres de host predeterminados únicos y seguros constituyen la configuración recomendada para todas las rutas de implementación de App Service. Adoptar el mismo formato en sus flujos de trabajo de CLI, ARM y API REST garantiza que el aprovisionamiento sea coherente con la postura de seguridad recomendada para App Service de ahora en adelante.

Más información: https://learn-microsoft-com.translate.goog/en-us/azure/app-service/reference-dangling-subdomain-prevention?_x_tr_sl=en&_x_tr_tl=es&_x_tr_hl=en-US&_x_tr_pto=wapp&tabs=cli

¿Le ha resultado útil esta respuesta?

2 personas han encontrado útil esta respuesta.

3 respuestas adicionales

Ordenar por: Más antiguo
  1. Kevin Paulino 0 Puntos de reputación
    2026-07-25T09:23:46.27+00:00

    Recomendas

    ¿Le ha resultado útil esta respuesta?

    0 comentarios No hay comentarios

  2. Kevin Paulino 0 Puntos de reputación
    2026-07-25T09:24:45.3766667+00:00

    Recomendada das y usos buenos

    ¿Le ha resultado útil esta respuesta?

    0 comentarios No hay comentarios

  3. Kevin Paulino 0 Puntos de reputación
    2026-07-25T09:25:25.2166667+00:00

    myapp-fna0ftajcrdxeren.eastus-01.azurewebsites.net

    ¿Le ha resultado útil esta respuesta?

    0 comentarios No hay comentarios

Su respuesta

Las respuestas pueden ser marcadas como "Aceptadas" por el autor de la pregunta y "Recomendadas" por los moderadores, lo que ayuda a los usuarios a saber que la respuesta ha resuelto el problema del autor.