首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为Azure CloudCustodian设置CloudCustodian

如何为Azure CloudCustodian设置CloudCustodian
EN

Stack Overflow用户
提问于 2022-08-31 19:28:09
回答 1查看 30关注 0票数 0

Azure函数在2022年9月30日(Azure更新文档)的一个月内不再支持Python3.6。

我的azure-periodic CloudCustodian规则作为Azure函数运行,它们要么没有设置linuxFxVersion,要么设置为python|3.6 (基于这个Azure医生az命令):

代码语言:javascript
复制
% az functionapp config show --ids <Azure Function ID>
{
  ...
  "limits": null,
  "linuxFxVersion": "python|3.6",
  "loadBalancing": "LeastRequests",
  ...
}

我注意到在AWS中有一种配置runtime 在CloudCustodian文档中这个中间的例子的方法

代码语言:javascript
复制
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?设置值的配置?

还问了CloudCustodian的GitHub讨论

EN

回答 1

Stack Overflow用户

发布于 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。 如果应用程序已经存在,它将不会被修改。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73560996

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档