Traffic Manager Integration
From @arafato on May 23, 2016 19:4
Hi--,
is integration of Azure Functions with Traffic Manager (TM) supposed to work? I've just tried it out, however, TM is not able to resolve the endpoints. Thanks!
Best regards --Oliver.
Copied from original issue: Azure/azure-webjobs-sdk-script#379
From @davidebbo on May 23, 2016 19:21
At this time, Function Apps in the Dynamic sku have a limitation that they don't support custom host names. It lets you register them but they don't actually work, which I think is why TM is not working.
This is something that we're planning to enable, but will take a few iteration. That logic sits outside of the GitHub code base, but it's ok to track it here.
From @christopheranderson on May 24, 2016 22:41
Assigning to myself to track
From @christopheranderson on June 21, 2016 20:32
Need to chat with platform folks to see if this will be around for rc. Might change milestone to help me track.
From @DarinMacRae on September 26, 2016 18:12
Just ran into this one myself. Any status update on this? I'm using ~0.6.
From @AndyMDoyle on November 16, 2016 8:21
Any update on this now Azure Functions has hit release?
From @DKincer on March 16, 2017 13:5
bump Checking if there is an update on this issue. Currently publishing an Azure Function takes it offline. Need to set up a priority traffic manager to divert from East to West during a publish
@DKincer We'll be enabling this feature soon in the UI. I'll see if there's a workaround using ARM APIs in the meantime.
@DKincer Traffic Manager does not work. I'm keeping this issue open to track the feature request.
Thank you.
Do we have any type of ETA on this particular feature? I could really use it!
OLD:
It would be nice to add some information about this. Currently traffic manager is working for some time when adding as external. BUT even if I am adding: http://functions-name.azurewebsites.net, Traffic manager actually points to http://HOSTS.functions-name.azurewebsites.net, which pulls up azure websites 404, and does not point to any function. Not only that but since its 404 code it breaks traffic manager endpoint after while (probadly)
nslookup dummiertf.trafficmanager.net
Non-authoritative answer: Name: hosts.emotiondemo.azurewebsites.net Address: 52.169.184.163 Aliases: dummiertf.trafficmanager.net emotiondemo.azurewebsites.net
New information below. Sorry for spam, I newbie in it but very excited about functions ;).
Updated information:
TM is possible just not automatic. You have to do some stuff manual way. https://blogs.msdn.microsoft.com/appserviceteam/2017/03/23/azure-app-service-web-api-mobile-ase-azure-functions-sku-comparison-matrix-2/
-
Create "/api/ping" Function that gonna respond for traffic manager calls that checks if function is alive. Preferably in Javascript since its fastest.
-
Add functions as external endpoint.
That's all.
@lindydonna Can you comment on @rawlukMike's reported issue above? We're evaluating a geo-distributed Functions app as well.
@rawlukMike This sounds like a limitation of external endpoints. My guess is that when the Function App goes idle, it ends up going offline in Traffic Manager. So, your function would need to be running continuously for this to work.
We'll investigate and update the blog post with additional information.
@lindydonna Sorry I shall update my answer above tomorrow. I solved the issue by investigation step by step. What's actually solving all problems with traffic manager is creating a PING function (the best is javascript since its fastest) that respond to functionName.azurewebsites.net/api/ping. Only if you have custom function that respond on ping, external endpoint won't die after a while. This is actually pretty obvious, but even TM expert from premium support could not solve it. This is not nicest solution since it generates cost since traffic manager is executing function constantly but still within free limits, so not that costly.
I will update my post above so it will have solution, but you shall point this in docs about websites that this is required.
@rawlukMike
I I tried your 2-steps, however there must be some missing steps in order to have a fully functional solution. The probe in TM is now working (probing the Function App) and will there for create the alias for the name of the Function App. However the Function App doesn't resolve. How to configure the host name in the Function App for the new TM-alias?
This is what we do in our solution:
Set up ping function in javascript (fastest) so /api/ping will respond
nicely to TM.
Your domain must point to TM.
Add external endpoint to functions.
Change priority so TM points to to functions
2017-10-10 20:53 GMT+02:00 Martin Dahlstedt [email protected]:
@rawlukMike https://github.com/rawlukmike
I I tried your 2-steps, however there must be some missing steps in order to have a fully functional solution. The probe in TM is now working (probing the Function App) and will there for create the alias for the name of the Function App. However the Function App doesn't resolve. How to configure the host name in the Function App for the new TM-alias?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/Azure-Functions/issues/214#issuecomment-335572138, or mute the thread https://github.com/notifications/unsubscribe-auth/AGsQWnCOHJxDMuF6UyJNTSIUDSr4fS_hks5sq70zgaJpZM4MfuVf .
@rawlukMike
Thanks for great feedback! Is there a way to create this domain/CNAME in Azure in order to point it to TM and also to be added as a custom hostname in Azure Function?
Yes, you can buy it in Azure. https://docs.microsoft.com/en-us/azure/app-service/custom-dns-web-site-buydomains-web-app
But before you post anymore here, please consider if it's related to topic :).
2017-10-10 22:54 GMT+02:00 Martin Dahlstedt [email protected]:
@rawlukMike https://github.com/rawlukmike
Thanks for great feedback! Is there a way to create this domain/CNAME in Azure in order to point it to TM and also to be added as a custom hostname in Azure Function?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/Azure-Functions/issues/214#issuecomment-335604720, or mute the thread https://github.com/notifications/unsubscribe-auth/AGsQWliAqvjjTywckGxnclUd132L_uBtks5sq9l-gaJpZM4MfuVf .
Using TM on consumption plan App Services now works fine. I just tested it with SSL and everything! All checks out fine. This issue should be closed. @AzureFunctions told me a fix was rolled out yesterday on their twitter handle (https://twitter.com/AzureFunctions/status/925483053677346817)