ske
ske

Reputation: 5264

How do you know which Azure App Service instance you are accessing?

I scaled out like 2 instances of Azure App Service that hosts my web app.

Now, there are 3 instances running the same thing.

I need to know every response returned by every instance.

How do I know which instance I am calling?

Upvotes: 1

Views: 1232

Answers (1)

Martin Brandl
Martin Brandl

Reputation: 58951

You are probably looking for the WEBSITE_INSTANCE_ID Environment variable:

the id representing the VM that the site is running on (If site runs on multiple instances, each instance will have a different id).

Source.

Upvotes: 4

Related Questions