gpt4 book ai didi

azure - Azure 函数中的自定义配置

转载 作者:行者123 更新时间:2023-12-03 01:44:17 25 4
gpt4 key购买 nike

我正在将 Azure Webjob 转换为 Azure 函数。 webjob 使用自定义配置,添加为 app.config 中的配置部分

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="cacheSettings" type="Common.Configuration.CacheSettings, Common" restartOnExternalChanges="true" />
</configSections>
</configuration>

有什么方法可以使用Azure功能部署配置吗?

最佳答案

不,无法在 Azure Functions 中执行此操作。无论您通过 app.config 初始化什么值,都必须通过代码而不是配置来初始化。

关于azure - Azure 函数中的自定义配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49076405/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com