Open joshlrogers opened 2 years ago
Hi @joshlrogers , Can you please further explain line 5 . What domain are you referring to, do you have a doc link that you are trying to follow. and what is the name?
Create a domain with a name that shares the first letter as the name of the function app created in step 3
Yes, @v-anvari , you can reproduce by binding a function to any custom domain name that shares the same first letter as the function name. For instance, I have a function name called domainbreakdemo
that is hosting the example code in my original post in the Central US
region. I have a custom domain bound to it at d.catchco.io
. Since they both start with d
the function will never fully start. The only function I can get to sporadically respond is the HttpTrigger and if you just sit and hit refresh on it over and over you can see that it only responds a few times then stops then responds a few times and stops.
If I change the domain to any other domain that doesn't start with a d
it will begin working.
Hi @joshlrogers, Thank you for your feedback! We will investigate this further and update you with the findings.
Yes, I know it sounds crazy, but it seems true from all appearances. I have been defeated over the last 2 days trying to bind a hostname to an Azure Linux Function App using a consumption plan and this ultimately seems why.
I have a function app that contains a number of triggers and in particular a Blob trigger. This function app works as intended upon deployment, and by work I mean I can monitor the log stream and see the internal timers of the triggers firing and no exceptions are being reported. This code also works locally against Azurite and the function host. Once I bind this function app to a domain that shares the same first letter as the function app it immediately begins failing. I begin to get an exception continuously showing up in the logs
Microsoft.Azure.Storage.StorageException: The specifed resource name contains invalid characters
(typo in that exception message btwspecifed
rather thanspecified
). The entire function app becomes non responsive. In the portal you can't even get a response from the Functions > {Function Name} -> Code + Test, the screen just remains blank for every function.I am able to resolve this problem by removing the hostname binding or by changing it to a domain that doesn't share the same first letter.
I have a demo that when deployed will break as I laid out: https://github.com/joshlrogers/AzFuncBreakingOnDomainBinding
Reproduction Steps:
Azure_Storage_ConnectionString
and set it to the storage account not used in step 3func azure functionapp publish {FunctionAppName} --csharp --dotnet-cli-params -- "-c Release"
At this point, you can now remove the domain binding and it will begin working or change it to any other domain that starts with a different first character and it will begin working.
🤯
Terraform code for app: