2017-01-24 17 views
1

的Python的Azure的SDK相當於有一個Python等同的: Microsoft.Azure.CloudConfigurationManager.GetSettingCloudConfigurationManager

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

回答

0

我回顧了Azure的SDK的source codes & api documents爲Python,我沒有找到有關Python中的功能,在C#相當於Microsoft.Azure.CloudConfigurationManager.GetSetting的任何信息。

同時,似乎用於讀取.cscfg文件創建通過服務管理客戶端的雲服務部署的代碼configuration = base64.b64encode(open(file_path, 'rb').read('path_to_.cscfg_file'))here Azure中的Python SDK只支持。

看來解析.cscfg文件是獲得雲服務屬性的唯一方法。