2

I am working on azure webrole, and in one of my application which is console application, I want to know in which enviroment my webrole running?

I.e staging / production environment.

Is there any dll available to get this idea? I am looking for the solution available with dll provided by azure, not the REST API?

I want to do without the user of CERTIFICATE

David Makogon
  • 69,407
  • 21
  • 141
  • 189
amit patel
  • 2,287
  • 8
  • 31
  • 45

2 Answers2

1

check back this question.

There is no other way (that I know) to get the environment type.

Community
  • 1
  • 1
astaykov
  • 30,768
  • 3
  • 70
  • 86
0

Another good approach is given here

...you can check your application url, if its what your service name is then its production, othrwise if its some random guid then staging.

Yossi Dahan
  • 5,389
  • 2
  • 28
  • 50