Azure-Functions: Can you use web.config restrictions (e.g. IP restriction or basic Auth)

前端 未结 2 1249
情话喂你
情话喂你 2021-01-23 03:02

IP Restrictions are possible for Azure Websites as is protecting the site with Basic Authentication..

Are these, or any other web.config techniques possible on Azure Fu

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-23 03:28

    Web.config files do not apply to Function Apps and will indeed (as you found) be ignored.

    Because of this limitation, features that require web.config customization are not supported with the standard Function App model (as you can see in the answer linked by @Mikhail, there are workarounds), and the alternative, currently, would be to handle this requirement in code.

提交回复
热议问题