【问题标题】:Python Azure SDK Equivalent of CloudConfigurationManagerCloudConfigurationManager 的 Python Azure SDK 等效项
【发布时间】:2017-01-24 15:54:51
【问题描述】:

是否有 Python 等价物: Microsoft.Azure.CloudConfigurationManager.GetSetting

目前我找到了 ServiceConfiguration.cscfg 文件,并解析它!!

【问题讨论】:

    标签: python azure configuration sdk


    【解决方案1】:

    我查看了 Azure SDK for Python 的 source codesapi documents,我没有找到任何关于 Python 中与 C# 中的 Microsoft.Azure.CloudConfigurationManager.GetSetting 等效的功能的信息。

    同时,Azure Python SDK 似乎只支持读取.cscfg 文件以通过服务管理客户端创建云服务部署,代码configuration = base64.b64encode(open(file_path, 'rb').read('path_to_.cscfg_file')) 来自here

    看来解析.cscfg文件是获取云服务属性的唯一方法。

    【讨论】:

      猜你喜欢
      • 2017-11-21
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-26
      • 1970-01-01
      相关资源
      最近更新 更多