gpt4 book ai didi

python - 如何应用 Pulumi Azure Function App 运行时

转载 作者:行者123 更新时间:2023-12-03 05:22:02 30 4
gpt4 key购买 nike

我有一个 Pulumi 脚本来部署一些服务。一切都很好,除了我不明白如何将运行时应用到 Functions App

api_function_app = azure.appservice.FunctionApp("ApiFunctionApp",
location=resource_group.location,
enabled= True,
enable_builtin_logging = True,
resource_group_name=resource_group.name,
app_service_plan_id=functionStoragePlan.id,
storage_account_name=functionStorageAccount.name,
storage_account_access_key=functionStorageAccount.primary_access_key, os_type="linux", version="~3")

有人见过这样的例子吗?

最佳答案

我认为您需要为 FUNCTIONS_WORKER_RUNTIME 应用程序设置设置一个值

...
app_settings={
"FUNCTIONS_WORKER_RUNTIME": "python"
},
...

关于python - 如何应用 Pulumi Azure Function App 运行时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71399552/

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