Azure函数在2022年9月30日(Azure更新文档)的一个月内不再支持Python3.6。
我的azure-periodic CloudCustodian规则作为Azure函数运行,它们要么没有设置linuxFxVersion,要么设置为python|3.6 (基于这个Azure医生的az命令):
% az functionapp config show --ids <Azure Function ID>
{
...
"limits": null,
"linuxFxVersion": "python|3.6",
"loadBalancing": "LeastRequests",
...
}我注意到在AWS中有一种配置runtime 在CloudCustodian文档中和这个中间的例子的方法
policies:
- name: sec-n-elb-internet-facing
resource: aws.elb
description: |
This policy identifies all Load Balancers that are facing the
Internet.
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参考看了看,却找不到类似的东西。是否有为Azure linuxFxVersion?设置值的配置?
发布于 2022-09-08 21:09:55
这已经在CloudCustodian GitHub讨论线程中得到了响应,这里是:https://github.com/cloud-custodian/cloud-custodian/discussions/7716#discussioncomment-3538443
这个设置在tools/c7n_azure/c7n_azure/constants.py中。 当前的值是Python3.8,所以我预计如果让管理员重新创建函数应用程序,它将使用3.8。 如果应用程序已经存在,它将不会被修改。
https://stackoverflow.com/questions/73560996
复制相似问题