Azure前门忽略错误403:WebApp已停止(对于Azure功能而非WebApp)
我有一个Azure前门。在二级区域中的主和一个功能应用中,有一个Azure函数。当两个功能都启动时,它正常工作。它正在向每个区域分配50-50个负载。但是,当我故意停止主要功能时。所有流量都应转到次要区域。但事实并非如此。 “ Web应用程序已停止”时,当一个区域下降时,此页面不应被Azure前门地址击中。但是在我的情况下,“ Web应用程序已停止”,此消息来自一个降低的区域。
我尝试使用具有相同情况的Web应用程序。一切都按预期工作。当我关闭一个网络应用程序时。所有流量仅涉及次要区域。 Azure前门未调用Downed Region Web应用程序。我想要的Azure功能也是相同的结果。但是它没有用于与WebApp相同的配置。
这是我的配置图片。
I have one Azure front door. with one azure function in primary and one function app in the secondary region.It is working fine when both functions are up. it is distributing 50-50 loads to each region. but when I intentionally stop the primary function. all traffic should go to the secondary region. but it doesn't. "The web app is stopped " this page should not be hit by azure front door address when one region is down. but in my case "The web app is stopped" this message comes from a downed region.
I tried with web app with the same case scenario. and everything is working as expected. when I turn off one web app. all traffic goes to only the secondary region. azure front door doesn't call downed region web app. the same result I want for Azure function too. but it is not working for same configuration as I did for Webapp.
Here are my config pic.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢 @ thomas 为OP提供有用的建议,通过检查第二个后备的健康状况,从前门。发布该决议作为帮助其他社区成员的答案。
Glad @ vishnuprajapati 您已经通过使用thomas评论来识别小故障来确定自己解决问题> Azure功能中的代理。
Thanks to @Thomas for providing the helpful suggestion to the OP let resolve the issue by checking the health status of the second backend from front door. Posting this resolution as an answer to help other community members.
Glad @vishnuprajapati that you had resolved the issue yourself by identifying the glitch using the Thomas comment and then removing the
proxy in Azure Functions
.