简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM