如何从Azure配置文件获取所有配置设置? [英] How to get all configuration settings from Azure Config file?

查看:154
本文介绍了如何从Azure配置文件获取所有配置设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Azure cscfg文件获取所有配置设置(当前角色或所有角色无关紧要)。我想这样做,因为我不想通过RoleEnvironment.GetConfigurationSettingValue(key)方法逐个获取所有的值。

I need to get all configuration settings (current role or all roles not matter) from Azure cscfg file. I want to do this because i dont want to get all values one by one via RoleEnvironment.GetConfigurationSettingValue(key) method.

有办法吗?

尊敬

推荐答案

这可能看起来像一个有点圆的方式,但如果你想获得部署中的所有角色的配置,你可以使用管理api

It might seem like a slightly round-about way of doing it, but if you want to get the configurations for all the roles in a deployment you can use the management api.

这篇关于如何从Azure配置文件获取所有配置设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆