【发布时间】:2017-01-24 15:54:51
【问题描述】:
是否有 Python 等价物: Microsoft.Azure.CloudConfigurationManager.GetSetting
目前我找到了 ServiceConfiguration.cscfg 文件,并解析它!!
【问题讨论】:
标签: python azure configuration sdk
是否有 Python 等价物: Microsoft.Azure.CloudConfigurationManager.GetSetting
目前我找到了 ServiceConfiguration.cscfg 文件,并解析它!!
【问题讨论】:
标签: python azure configuration sdk
我查看了 Azure SDK for Python 的 source codes 和 api 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文件是获取云服务属性的唯一方法。
【讨论】: