App Service Slot Deployed with Wrong Hostname

Kamoji, Koichiro J (KKAMOJI) 6 Reputation points

App service slot keeps getting deployed with a hostname different than requested. Azure is adding random characters to the slot hostname.
For example,, the expected hostname is The characyters "b8e7" are added by Azure.
This started happening after the slot was deleted and re-created.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,996 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Alistair Ross 7,101 Reputation points Microsoft Employee


    This behaviour is expected as per our documentation

    "The slot's URL will be of the format To keep the URL length within necessary DNS limits, the site name will be truncated at 40 characters, the slot name will be truncated at 19 characters, and an additional 4 random characters will be appended to ensure the resulting domain name is unique."

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind regards