You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何为Azure CloudCustodian设置linuxFxVersion参数?

如何为Azure CloudCustodian的azure-periodic模式设置linuxFxVersion?

Azure Functions已于2022年9月30日停止对Python 3.6的支持。我通过CloudCustodian的azure-periodic规则部署的Azure Function,其linuxFxVersion要么未配置,要么默认被设为python|3.6——可以用az命令查看当前配置:

az functionapp config show --ids <Azure Function ID>

输出示例:

{
  ...
  "limits": null,
  "linuxFxVersion": "python|3.6",
  "loadBalancing": "LeastRequests",
  ...
}

我注意到在AWS版本的CloudCustodian中,可以直接在模式配置里设置runtime参数指定Python版本,示例如下:

policies:
- name: sec-n-elb-internet-facing
  resource: aws.elb
  description: |
     识别所有面向公网的负载均衡器
  filters:
    - Scheme: internet-facing
  mode:
    type: periodic
    schedule: "rate(3 days)"
    execution-options:
      output_dir: s3://example-bucket/cclogs/policy/{account_id}
    runtime: python 3.8

但我查阅了CloudCustodian的Azure periodic模式相关文档,并未找到类似的配置项。请问是否存在可用于为Azure CloudCustodian设置linuxFxVersion值的配置?

注:该问题也在CloudCustodian的GitHub讨论区提出过

内容的提问来源于stack exchange,提问作者blim747

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 18:39:42