如何应用 Pulumi Azure Function App 运行时

How to apply a Pulumi Azure Function App runtime

我有一个 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"
},
...