是否有Python相当于: Microsoft.Azure.CloudConfigurationManager.GetSetting
目前我找到ServiceConfiguration.cscfg文件,并解析它!!
答案 0 :(得分:0)
我查看了source codes& Azure SDK for Python的api documents,我没有在Python中找到有关该功能的任何信息,它相当于C#中的Microsoft.Azure.CloudConfigurationManager.GetSetting
。
与此同时,似乎Azure Python SDK仅支持读取.cscfg
文件以通过服务管理客户端创建Cloud Service部署,作为here的代码configuration = base64.b64encode(open(file_path, 'rb').read('path_to_.cscfg_file'))
。
因此,解析.cscfg
文件似乎是获取云服务属性的唯一方法。