Azure Functions Traffic Manager

 ̄綄美尐妖づ 提交于 2019-11-30 16:48:49

So the answer I arrived to after Traffic manager didntsupport Azure functions was to overall build 3 Azure functions. I built an East and a West that has my azure function code on it. Then I built a main Azure Function that has 0 code. It only has Azure proxies on it that route to my 2 other Azure Functions. The route is controlled by a variable in the proxy string that is help in the main API app settings. Using %myvariable% you can set part of the url. When I need to publish I switch the variable to the secondary URL location. Update the Primary and then switch the URL to its original primary location. This will have to work for now till traffic manager is integrated into functions or a better solution arises. Hopes this helps anyone else that was stuck!

Although it's not with Azure Traffic Manager, you can solve you problem using Azure Functions Proxy. All you need to do is implement a kind of flag to check if the function is available or not, before route the traffic to that.

http://www.c-sharpcorner.com/article/reverse-proxy-using-azure-functions-proxies/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!