Azure功能和限制IP

编程入门 行业动态 更新时间:2024-10-25 00:33:25
本文介绍了Azure功能和限制IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我真的很想在即将到来的项目中使用Azure Functions,但是有没有办法像在Web.Config中的ipSecurity中那样创建IP白名单?

I would really like to use Azure Functions for an upcoming project, but is there a way to create a whitelist of IPs like in ipSecurity in Web.Config?

他们正在使用authLevel功能,因此那里有一些保护.我的客户对白名单有安全要求.

They are using authLevel function, so there is some protection there. My customer has a security requirement for a whitelist.

看着资源浏览器,似乎有一个属性 ipSecurityRestrictions 可能有用,但是我在Azure函数实例上看不到它.

Looking at the resource explorer there seems to be a property ipSecurityRestrictions that might work, but I don't see it on my Azure function instance.

推荐答案

不幸的是,由于您无法控制web.config,因此无法做到这一点.

Unfortunately, as you don't have control over a web.config this isn't doable that way.

您可以在函数本身中进行ip验证,也可以添加诸如API管理之类的解决方案来阻止流量.

You could do the ip validation within the function itself or add a solution like API Management to block traffic.

如果您愿意在专用(而非消耗计划)上运行,则可以使用带有所需IP白名单的经过修改的web.config将功能运行库作为站点扩展部署为站点扩展: github/Azure/azure-webjobs-sdk-script/wiki/Deploying-the-Functions-runtime-as-a-private-site-extension

If you're willing to run on dedicated (not consumption plan), you can deploy the functions runtime as a site extension with a modified web.config with the ip whitelist you need: github/Azure/azure-webjobs-sdk-script/wiki/Deploying-the-Functions-runtime-as-a-private-site-extension

更多推荐

Azure功能和限制IP

本文发布于:2023-08-01 16:42:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1269936.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:功能   Azure   IP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!