Open stevematney opened 1 year ago
Thank you for opening this issue, we will look into it.
Hey all! I know this is somewhere on the radar, but I just wanted to let you know that someone else from our org ran into this today. It prevents routing to slots with x-ms-routing-name
from working, even though everything appears to be configured correctly. It's only when using something like az webapp traffic-routing show
and looking very carefully at the actionHostName
that you see the actual problem: your routing configuration is pointing to a non-existent domain.
Related command
Describe the bug When running the
traffic-routing set
command, theactionHostName
parameter is set incorrectly, resulting in a 404 when routing viax-ms-routing-name
. When running the command above, the result will be:Based on the last paragraph of this documentation section, the real host name for the slot will be truncated. Trying to route to that slot with
https://this-app-service-has-a-name-that-is-too-long.azurewebsites.net/?x-ms-routing-name=predeploy
will return a 404 because theactionHostName
does not exist in Azure's network.If setting the routing through the portal, we would see that the host name gets set correctly:
After this configuration change via the portal, routing to
https://this-app-service-has-a-name-that-is-too-long.azurewebsites.net/?x-ms-routing-name=predeploy
will work correctly.To Reproduce Run the
az webapp traffic-routing set
command with a slot and an App Service whose hostname is >40 characters.Expected behavior The traffic would be appropriately routed to the correct hostname for the target slot.
Environment summary
OS: MacOS Ventura 13.3.1 CLI:
Shell: zsh