question

TaherTamboli-4083 avatar image
0 Votes"
TaherTamboli-4083 asked ajkuma-MSFT answered

Can we change the App Service Slot name to be included as prefix as opposed to the suffix

So adding a slot name as dev, would create the url as appservice-dev.azuresites.net. How can we create dev-appservice.azurewebsites.net ?

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
1 Vote"
ajkuma-MSFT answered

@TaherTamboli-4083,

By design, it takes the form of https://<app_name>-<slot-name>.azurewebsites.net , it’s suffixed and unfortunately cannot be changed (or prefixed).

119819-image.png

If your requirement fits, you may use a custom domain for the slots. The custom domain name is a sticky setting, meaning, the custom domain name is targeted to a slot and is not swapped.

Kindly see the doc section ‘Settings that aren't swapped’: https://docs.microsoft.com/azure/app-service/deploy-staging-slots#which-settings-are-swapped

If you wish you may share your feedback on this on our Uservoice - All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure. Also, users with a similar request, can up-vote you post and add their comments.

P.S.
Just to clarify: It's looks here "would create the url as appservice-dev.azuresites.net. " - I believe you meant: appservice-dev.azurewebsites.net.




image.png (5.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.