Azure App Service slot with custom hostname

Hi,

I’m trying to find out how to add a ‘azurerm_app_service_custom_hostname_binding’ for an app service slot. I’ve done one for the main app service (default production slot).

Do I just specify the name of the slot in the ‘app_service_name’ of the hostname binding? I can’t work it out from the docs, doesn’t seem to mention slots.

Thanks

Joss

Hello @joss.ingram,

FWIW, I just ran into this as well and found the following issue:

If you follow the comments, you see a workaround using ARM template deployment. I am going to end up using that in my implementation. I know this is a couple months old, but figured I should share what I found…

Hope this helps!

Thanks. I can’t believe there is still no way to do this in TF though directly?