Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 有没有办法知道我的webrole在什么环境下运行?_Azure_Azure Configuration - Fatal编程技术网

Azure 有没有办法知道我的webrole在什么环境下运行?

Azure 有没有办法知道我的webrole在什么环境下运行?,azure,azure-configuration,Azure,Azure Configuration,我正在使用azure webrole,在我的一个应用程序(控制台应用程序)中,我想知道我的webrole运行在哪个环境中 即暂存/生产环境 是否有任何dll可用于获取此想法?我正在寻找可用的解决方案 由azure提供的dll,而不是RESTAPI 我想不使用证书的用户请稍后查看 没有其他方法(我知道)来获取环境类型。给出了另一种很好的方法 …您可以检查您的应用程序url,如果它是您的服务名称,那么它的生产,或者如果它是一些随机guid,那么它的登台

我正在使用azure webrole,在我的一个应用程序(控制台应用程序)中,我想知道我的webrole运行在哪个环境中

即暂存/生产环境

是否有任何dll可用于获取此想法?我正在寻找可用的解决方案 由azure提供的dll,而不是RESTAPI

我想不使用证书的用户

请稍后查看


没有其他方法(我知道)来获取环境类型。

给出了另一种很好的方法

…您可以检查您的应用程序url,如果它是您的服务名称,那么它的生产,或者如果它是一些随机guid,那么它的登台