What's a possible way to determine on an Azure website with multiple instances what instance is responding (some ID or other piece of unique info)?
The following environment setting will have the instance id the current request is running on: WEBSITE_INSTANCE_ID.
You'll also receive this id as a cookie in the response named: ARRAffinity.
You can also use this information to get back to that specific instance, see: http://blog.amitapple.com/post/2014/03/access-specific-instance/ for more information about it.
Microsoft Azure provides many environment variables for Azure Web Apps (formerly known as Website), including the following:
WEBSITE_SITE_NAME
- the name of the site.
WEBSITE_INSTANCE_ID
- the id representing the VM that the site is running on.
etc
See Azure Runtime Environment by David Ebbo for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With